const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_next/static/chunks/Icon-D0zGVybZ.js","_next/static/chunks/rolldown-runtime-C60lm6uB.js","_next/static/chunks/framework-D_rUT4EX.js","_next/static/chunks/participation-panel-6VKvfdmq.js","_next/static/chunks/streamed-icons-Cs-m6aYg.js","_next/static/chunks/image-D53ydRNL.js","_next/static/chunks/layout-segment-context-7E9lw61B.js"])))=>i.map(i=>d[i]); import{n as e,r as t,t as n}from"./rolldown-runtime-C60lm6uB.js";import{i as r,n as i,r as a,t as o}from"./framework-D_rUT4EX.js";var s=Symbol.for(`vinext.client.react`);function c(e){let t=Reflect.get(globalThis,s);return t===void 0?(Reflect.set(globalThis,s,e),e):t}var l=t(r(),1);c(l);function u(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}var d=Symbol.for(`vinext.navigationRuntime`),f=[`boundaries`,`defaults`,`interceptions`,`interceptionsBySlotId`,`layouts`,`pages`,`rootBoundaries`,`routeHandlers`,`routes`,`slotBindings`,`slots`,`templates`];function p(){return{bootstrap:{routeManifest:null,rsc:void 0},functions:{}}}function m(){return window}function h(e){return u(e)?E(Reflect.get(e,`clearNavigationCaches`))&&E(Reflect.get(e,`commitHashNavigation`))&&E(Reflect.get(e,`navigateExternal`))&&E(Reflect.get(e,`navigate`))&&E(Reflect.get(e,`getPrefetchRouterState`))&&E(Reflect.get(e,`notifyLinkNavigationStart`))&&E(Reflect.get(e,`pingVisibleLinks`))&&E(Reflect.get(e,`preparePrefetchResponse`)):!1}function g(e){return typeof e==`string`?!0:Array.isArray(e)&&e.length===2&&e[0]===3&&typeof e[1]==`string`}function _(e){if(!u(e))return!1;let t=Reflect.get(e,`pathname`),n=Reflect.get(e,`searchParams`);return typeof t==`string`&&Array.isArray(n)&&n.every(e=>Array.isArray(e)&&e.length===2&&typeof e[0]==`string`&&typeof e[1]==`string`)}function v(e){return u(e)?Object.values(e).every(e=>typeof e==`string`||Array.isArray(e)&&e.every(e=>typeof e==`string`)):!1}function y(e){if(!u(e))return!1;let t=Reflect.get(e,`done`),n=Reflect.get(e,`dynamicStaleTimeSeconds`),r=Reflect.get(e,`initialCacheKind`),i=Reflect.get(e,`nav`),a=Reflect.get(e,`params`),o=Reflect.get(e,`rsc`),s=Reflect.get(e,`staleTimeSeconds`);return(t===void 0||typeof t==`boolean`)&&b(n)&&(r===void 0||r===`dynamic`||r===`static`)&&(i===void 0||_(i))&&(a===void 0||v(a))&&Array.isArray(o)&&o.every(g)&&b(s)}function b(e){return e===void 0||typeof e==`number`&&Number.isFinite(e)&&e>=0}function x(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)}function S(e){return e===null||typeof e==`string`}function C(e){return u(e)?typeof e.id==`string`&&typeof e.sourcePattern==`string`&&x(e.sourcePatternParts)&&typeof e.targetPattern==`string`&&x(e.targetPatternParts)&&typeof e.slotId==`string`&&S(e.ownerLayoutId)&&S(e.interceptingRouteId)&&S(e.targetRouteId):!1}function w(e){return Array.isArray(e)&&e.every(C)}function ee(e){if(!u(e))return!1;let t=Reflect.get(e,`graphVersion`),n=Reflect.get(e,`segmentGraph`);if(typeof t!=`string`||!u(n))return!1;let r=Reflect.get(n,`interceptions`),i=Reflect.get(n,`interceptionsBySlotId`);if(!f.every(e=>Reflect.get(n,e)instanceof Map)||!(r instanceof Map)||!(i instanceof Map))return!1;for(let e of r.values())if(!C(e))return!1;for(let e of i.values())if(!w(e))return!1;return!0}function te(e){if(!u(e))return!1;let t=Reflect.get(e,`routeManifest`),n=Reflect.get(e,`rsc`);return(t===null||ee(t))&&(n===void 0||y(n))}function T(e){if(!u(e)||!(`bootstrap`in e)||!(`functions`in e))return!1;let{bootstrap:t,functions:n}=e;return te(t)&&h(n)}function E(e){return e===void 0||typeof e==`function`}function D(){let e=m();if(e===null)return null;let t=Reflect.get(e,d);return T(t)?t:null}function O(){let e=m();if(e===null)return p();let t=Reflect.get(e,d),n=T(t)?t:p();return Reflect.set(e,d,n),n}function k(e){let t=O();return t.bootstrap={...t.bootstrap,...e},t}function A(e){let t=O();return t.functions={...t.functions,...e},t}function j(){return M(O())}function M(e){let t=e.bootstrap.rsc;if(t===void 0){let t={rsc:[]};return e.bootstrap.rsc=t,t}return t}function N(){return typeof D()?.functions.navigate==`function`}var ne=`X-Vinext-Params`,P=`X-Vinext-Mounted-Slots`,F=`X-Vinext-Dynamic-Stale-Time`,re=`X-Vinext-Rsc-Completion-Metadata`,I=`X-Vinext-Rendered-Path-And-Search`,ie=`X-Vinext-Interception-Context`,L=`X-Vinext-Rsc-Render-Mode`,ae=`X-Vinext-Client-Reuse-Manifest`,oe=`X-Vinext-Rsc-Redirect`,se=`X-Vinext-Rsc-Redirect-Type`,ce=`x-nextjs-stale-time`,le=`X-Vinext-Stale-Time-Pending`,ue=`Next-Router-State-Tree`,de=`Next-Router-Prefetch`,fe=`Next-Router-Segment-Prefetch`,R=`Next-Url`;function pe(e){return e.startsWith(`/`)&&!e.startsWith(`//`)&&!e.includes(`?`)&&!e.includes(`#`)&&!e.includes(`\0`)}function me(e){if(e===`/`||e.length>1&&e[0]===`/`&&!e.includes(`//`)&&!e.includes(`/./`)&&!e.includes(`/../`)&&!e.endsWith(`/.`)&&!e.endsWith(`/..`))return e;let t=e.split(`/`),n=[];for(let e of t)e===``||e===`.`||(e===`..`?n.pop():n.push(e));return`/`+n.join(`/`)}var he=(e,t)=>et);function ge(e){let t=2166136261;for(let n=0;n>>0;let n=84696351;for(let t=0;t>>0;return t.toString(16).padStart(8,`0`)+n.toString(16).padStart(8,`0`)}var _e=[`schemaVersion`,`graphVersion`,`deploymentVersion`,`appElementsSchemaVersion`,`rscPayloadSchemaVersion`,`rootBoundaryId`,`renderEpoch`];function ve(e={}){return{schemaVersion:1,graphVersion:e.graphVersion??null,deploymentVersion:e.deploymentVersion??null,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId??null,renderEpoch:e.renderEpoch??null}}function ye(e){return typeof e==`string`||e===null}function be(e){return e.schemaVersion===1&&e.appElementsSchemaVersion===1&&e.rscPayloadSchemaVersion===1}function xe(e){return!u(e)||!be(e)||!ye(e.graphVersion)||!ye(e.deploymentVersion)||!ye(e.rootBoundaryId)||!ye(e.renderEpoch)?null:{schemaVersion:1,graphVersion:e.graphVersion,deploymentVersion:e.deploymentVersion,appElementsSchemaVersion:1,rscPayloadSchemaVersion:1,rootBoundaryId:e.rootBoundaryId,renderEpoch:e.renderEpoch}}var z=a(),Se=new WeakMap;function Ce(e,t){Se.get(e)?.get(t)?.release()}var we=`\0`,Te=`__sourcePage`,Ee=`__artifactCompatibility`,De=`__cacheEntryReuseProof`,Oe=`__dynamicStaleTime`,ke=`__interception`,Ae=`__interceptionContext`,je=`__layoutIds`,Me=`__layoutFlags`,Ne=`__route`,Pe=`__rootLayout`,Fe=`__skippedLayoutIds`,Ie=`__srcPage`,Le=`__slotBindings`,Re=`__bfcacheSegmentIdentities`,ze=`__VINEXT_UNMATCHED_SLOT__`,Be=Symbol.for(`vinext.unmatchedSlot`),Ve=new Set;function He(e){return new Set(e)}var Ue=He(`CP_CACHE_ENTRY_PROOF_MISSING.CP_MODEL_DISABLED.CP_ARTIFACT_COMPATIBILITY_INCOMPATIBLE.CP_ARTIFACT_COMPATIBILITY_UNKNOWN.CP_DIMENSION_COUNT_EXCEEDED.CP_DIMENSION_NAME_MISSING.CP_DIMENSION_NAME_TOO_LONG.CP_DIMENSION_VALUE_COUNT_EXCEEDED.CP_DIMENSION_VALUE_TOO_LONG.CP_DIMENSION_VALUES_MISSING.CP_ENCODED_VARIANT_TOO_LONG.CP_INVALID_VARIANT_BUDGET.CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH.CP_ROUTE_VARIANT_CEILING_EXCEEDED.CP_UNSAFE_PUBLIC_DIMENSION.CP_BOUNDARY_OUTCOME_MISMATCH.CP_BOUNDARY_OUTCOME_UNKNOWN.CP_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_CANDIDATE_OUTPUT_KIND.CP_STATIC_LAYOUT_CURRENT_OUTPUT_KIND.CP_STATIC_LAYOUT_ID_MISMATCH.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_KIND.CP_STATIC_LAYOUT_OBSERVATION_OUTPUT_MISMATCH.CP_STATIC_LAYOUT_PRIVATE_DYNAMIC_DOWNGRADE.CP_STATIC_LAYOUT_REQUEST_API_OBSERVED.CP_STATIC_LAYOUT_REQUEST_API_UNKNOWN.CP_STATIC_LAYOUT_ROOT_BOUNDARY_MISMATCH.CP_STATIC_LAYOUT_ROOT_BOUNDARY_UNKNOWN.CP_STATIC_LAYOUT_VARIANT_DIMENSION_UNPROVEN`.split(`.`)),We=he;function Ge(e,t){return We(e.slotId,t.slotId)}function Ke(e,t={}){let n=t.layoutIds?new Set(t.layoutIds):null,r=new Set,i=[];for(let t of e){if(r.has(t.slotId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: duplicate slot id`);if(r.add(t.slotId),n&&t.ownerLayoutId!==null&&!n.has(t.ownerLayoutId))throw Error(`[vinext] Invalid __slotBindings in App Router payload: owner layout id missing from __layoutIds`);i.push({...t})}return i.sort(Ge)}function qe(e,t){return t===null?e:`${e}${we}${t}`}function Je(e,t){return qe(`route:${e}`,t)}function Ye(e,t){return qe(`page:${e}`,t)}function Xe(e){return`layout:${e}`}function Ze(e){return`template:${e}`}function Qe(e,t){return`slot:${e}:${t}`}function $e(e,t){return qe(e,t)}function et(e){let t=e.indexOf(we),n=t===-1?e:e.slice(0,t);return n.startsWith(`/`)?{interceptionContext:t===-1?null:e.slice(t+1),path:n}:null}function tt(e){return e.startsWith(`/`)?e:null}function nt(e){if(e.startsWith(`route:`)){let t=et(e.slice(6));return t?{interceptionContext:t.interceptionContext,kind:`route`,path:t.path}:null}if(e.startsWith(`page:`)){let t=et(e.slice(5));return t?{interceptionContext:t.interceptionContext,kind:`page`,path:t.path}:null}if(e.startsWith(`layout:`)){let t=tt(e.slice(7));return t?{kind:`layout`,treePath:t}:null}if(e.startsWith(`template:`)){let t=tt(e.slice(9));return t?{kind:`template`,treePath:t}:null}if(e.startsWith(`slot:`)){let t=e.slice(5),n=t.indexOf(`:`);if(n<=0)return null;let r=t.slice(0,n),i=tt(t.slice(n+1));return i?{kind:`slot`,name:r,treePath:i}:null}return null}function rt(e){let t=nt(e)?.kind;return t===`page`||t===`layout`||t===`template`||t===`slot`}function it(e){if(!e.startsWith(`slot:`))return!1;let t=e.slice(5),n=t.indexOf(`:`);return n>0&&t.charCodeAt(n+1)===47}function at(e){return Array.isArray(e)&&e.length>0&&e.every(e=>typeof e==`string`&&e.length>0&&!e.includes(`/`))}function ot(e){if(typeof e!=`string`||!e.startsWith(`/`))return null;let t=e.slice(1).split(`/`);return at(t)?t:null}function st(e){let t=[...e.layoutIds??[]],n=ot(e.sourcePage),r={[Ne]:e.routeId,[Ae]:e.interceptionContext,[je]:t,[Pe]:e.rootLayoutTreePath,...e.dynamicStaleTimeSeconds===void 0?{}:{[Oe]:e.dynamicStaleTimeSeconds},...e.bfcacheSegmentIdentities&&Object.keys(e.bfcacheSegmentIdentities).length>0?{[Re]:e.bfcacheSegmentIdentities}:{},...n===null?{}:{[Ie]:n}},i=e.interception?{...r,[ke]:e.interception}:r;return e.slotBindings&&e.slotBindings.length>0?{...i,[Le]:Ke(e.slotBindings,{layoutIds:t})}:i}function ct(e){let t=!1;for(let[n,r]of Object.entries(e))if(it(n)&&r===`__VINEXT_UNMATCHED_SLOT__`){t=!0;break}if(!t)return e;let n={};for(let[t,r]of Object.entries(e))n[t]=it(t)&&r===`__VINEXT_UNMATCHED_SLOT__`?Be:r;return n}function lt(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;for(let t of Object.values(e))if(t!==`s`&&t!==`d`)return!1;return!0}function ut(e){return lt(e)?e:{}}function dt(e,t){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);let n=[];for(let r of e){if(typeof r!=`string`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout id string[]`);if(nt(r)?.kind!==`layout`)throw Error(`[vinext] Invalid ${t} in App Router payload: expected layout ids`);n.push(r)}return n}function ft(e){return dt(e,je)}function pt(e){return dt(e,Fe)}function mt(e){return e===`active`||e===`default`||e===`unmatched`}function ht(e,t={}){if(e===void 0)return[];if(!Array.isArray(e))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected array`);let n=[];for(let t of e){if(!u(t))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected objects`);let e=t.slotId;if(typeof e!=`string`||nt(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected slot ids`);let r=t.ownerLayoutId;if(r!==null&&(typeof r!=`string`||nt(r)?.kind!==`layout`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected owner layout ids`);let i=t.state;if(!mt(i))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected state`);let a=t.activeRouteId;if(a!=null&&(typeof a!=`string`||nt(a)?.kind!==`route`))throw Error(`[vinext] Invalid __slotBindings in App Router payload: expected route ids`);n.push({...a===void 0?{}:{activeRouteId:a},ownerLayoutId:r,slotId:e,state:i})}return Ke(n,t)}function gt(e,t){let n=e[t];if(typeof n!=`string`)throw Error(`[vinext] Invalid __interception in App Router payload: expected strings`);return n}function _t(e){if(!pe(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected path URLs`);return e}function vt(e,t){let n=nt(e);if(n?.kind!==`route`||n.path!==t||n.interceptionContext!==null)throw Error(`[vinext] Invalid __interception in App Router payload: expected route ids`);return e}function yt(e){if(nt(e)?.kind!==`slot`)throw Error(`[vinext] Invalid __interception in App Router payload: expected slot id`);return e}function bt(e){if(e==null)return null;if(!u(e))throw Error(`[vinext] Invalid __interception in App Router payload: expected object`);let t=_t(gt(e,`sourceMatchedUrl`)),n=_t(gt(e,`targetMatchedUrl`));return{sourceMatchedUrl:t,sourceRouteId:vt(gt(e,`sourceRouteId`),t),slotId:yt(gt(e,`slotId`)),targetMatchedUrl:n,targetRouteId:vt(gt(e,`targetRouteId`),n)}}function xt(e){return!(typeof e!=`object`||!e||Array.isArray(e)||(0,l.isValidElement)(e))}function St(e,t){return{...e,[Me]:t}}function Ct(e){if(!xt(e.element))return e.element;let t=wt(e.skipDisposition),n={};for(let[r,i]of Object.entries(e.element)){if(t.has(r)){Ce(e.element,r);continue}n[r]=i===Be?ze:i}return n[Me]=e.layoutFlags,t.size>0&&(n[Fe]=[...t]),n[Ee]=e.artifactCompatibility??ve(),e.cacheEntryReuseProof&&(n[De]=e.cacheEntryReuseProof),e.dynamicStaleTimeSeconds!==void 0&&(n[Oe]=e.dynamicStaleTimeSeconds),n}function wt(e){if(e?.enabled!==!0)return Ve;let t=new Set;for(let n of e.skippedEntryIds)nt(n)?.kind===`layout`&&t.add(n);return t}function Tt(e){return e===void 0?ve():xe(e)??ve()}function Et(e){return e==null?null:typeof e==`string`?e.startsWith(`/`)?e:null:at(e)?`/${e.join(`/`)}`:null}function Dt(){return{kind:`runtime-cache-entry`,decision:null}}function Ot(e){return typeof e==`string`&&Ue.has(e)}function kt(e){return e===`renderFresh`||e===`privateUncacheable`}function At(e){return e===`affectedOutput`||e===`route`}function jt(e){if(e===void 0)return null;if(!u(e)||e.kind!==`runtime-cache-entry`)return Dt();let t=e.decision;return t===null||!u(t)?Dt():t.kind===`reuse`&&t.canReuse===!0&&t.code===`CP_STATIC_LAYOUT_REUSE_PROVEN`&&t.reuseClass===`static-layout`?{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:t.code,kind:`reuse`,reuseClass:t.reuseClass}}:t.kind===`reject`&&t.canReuse===!1&&Ot(t.code)&&kt(t.mode)&&At(t.scope)?{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:t.code,kind:`reject`,mode:t.mode,scope:t.scope}}:Dt()}function Mt(e){if(!u(e))return{};let t={};for(let[n,r]of Object.entries(e)){if(typeof r!=`string`||!rt(n))return{};t[n]=r}return t}function Nt(e){let t=e[Ne];if(typeof t!=`string`)throw Error(`[vinext] Missing __route string in App Router payload`);let n=e[Ae];if(n!=null&&typeof n!=`string`)throw Error(`[vinext] Invalid __interceptionContext in App Router payload`);let r=e[Pe];if(r===void 0)throw Error(`[vinext] Missing __rootLayout key in App Router payload`);if(r!==null&&typeof r!=`string`)throw Error(`[vinext] Invalid __rootLayout in App Router payload: expected string or null`);let i=ut(e[Me]),a=ft(e[je]),o=pt(e[Fe]),s=ht(e[Le],{layoutIds:a}),c=bt(e[ke]),l=Tt(e[Ee]),u=jt(e[De]),d=e[Oe],f=typeof d==`number`&&Number.isFinite(d)&&d>=0?d:void 0,p=Et(Object.hasOwn(e,`__srcPage`)?e[Ie]:e[Te]),m=Mt(e[Re]);return{artifactCompatibility:l,...u?{cacheEntryReuseProof:u}:{},...f===void 0?{}:{dynamicStaleTimeSeconds:f},interception:c,interceptionContext:n??null,layoutIds:a,layoutFlags:i,routeId:t,rootLayoutTreePath:r,bfcacheSegmentIdentities:m,skippedLayoutIds:o,slotBindings:s,sourcePage:p}}var B={keys:{artifactCompatibility:Ee,cacheEntryReuseProof:De,dynamicStaleTime:Oe,interception:ke,interceptionContext:Ae,layoutIds:je,layoutFlags:Me,rootLayout:Pe,route:Ne,bfcacheSegmentIdentities:Re,skippedLayoutIds:Fe,slotBindings:Le,sourcePageSegments:Ie},unmatchedSlotValue:ze,createMetadataEntries:st,decode:ct,encodeCacheKey:$e,encodeLayoutId:Xe,encodeOutgoingPayload:Ct,encodePageId:Ye,encodeRouteId:Je,encodeSlotId:Qe,encodeTemplateId:Ze,isSlotId:it,parseElementKey:nt,readMetadata:Nt,withLayoutFlags:St},Pt=4096,Ft=256,It=16;function Lt(e){return e.length===0||e.length>Ft?!1:B.isSlotId(e)}function Rt(e){if(!e||e.length>Pt)return null;let t=e.split(/\s+/).filter(e=>e&&Lt(e));return t.length===0?null:Array.from(new Set(t)).sort().slice(0,It).join(` `)||null}function zt(e){return Object.keys(e).filter(t=>{let n=e[t],r=B.parseElementKey(t);return r?.kind===`slot`&&r.name!==`children`&&n!=null&&n!==Be}).sort()}function Bt(e){return Rt(zt(e).join(` `))}function Vt(e,t){return t??e}var Ht=Symbol.for(`vinext.appRouterContext`),Ut=Symbol.for(`vinext.globalLayoutRouterContext`),Wt=Symbol.for(`vinext.layoutRouterContext`),Gt=Symbol.for(`vinext.missingSlotContext`),Kt=Symbol.for(`vinext.templateContext`);function qt(e,t){if(typeof l.createContext!=`function`)return null;let n=globalThis;return n[e]||(n[e]=l.createContext(t)),n[e]??null}var Jt=qt(Ht,null);qt(Ut,null),qt(Wt,null),qt(Gt,new Set),qt(Kt,null);var Yt=`1.0.0-beta.5`;function Xt(e){let t=window.next;if(t){e.version!==void 0&&(t.version=e.version),e.appDir!==void 0&&(t.appDir=e.appDir),e.router!==void 0&&(t.router=e.router),e.__pendingUrl!==void 0&&(t.__pendingUrl=e.__pendingUrl),e.__internal_src_page!==void 0&&(t.__internal_src_page=e.__internal_src_page);return}window.next={version:e.version??Yt,...e}}function Zt(e){if(Xt({}),e===null){delete window.next?.__internal_src_page;return}let t=window.next;t&&(t.__internal_src_page=e)}function Qt(e){try{return decodeURIComponent(e)}catch{return e}}function $t(e){let t=Qt(e.startsWith(`#`)?e.slice(1):e);if(t===``||t===`top`){window.scrollTo(0,0);return}let n=document.getElementById(t);if(n){n.scrollIntoView({behavior:`auto`});return}let r=document.getElementsByName(t)[0];if(r){r.scrollIntoView({behavior:`auto`});return}window.scrollTo(0,0)}function en(e,t){requestAnimationFrame(()=>{t&&!t()||$t(e)})}function tn(e,t,n){let r=n?.minFrames??0,i=n?.shouldContinue??(()=>!0),a=0,o=()=>{if(!i())return;window.scrollTo(e,t);let n=Math.abs(window.scrollY-t)<=1;!i()||n&&a>=r||a>=60||(a+=1,requestAnimationFrame(o))};o()}var nn=Symbol.for(`vinext.layoutSegmentContext`),rn=Symbol.for(`vinext.serverInsertedHTMLContext`),an=Symbol.for(`vinext.bfcacheIdMapContext`),on=Symbol.for(`vinext.bfcacheSegmentIdContext`),sn=Symbol.for(`vinext.navigation.clientHydrationContext`),cn=Symbol.for(`vinext.navigation.fallback`);function ln(e){return typeof l.createContext==`function`?l.createContext(e):null}function un(){let e=globalThis;return e[rn]||(e[rn]=ln(null)),e[rn]??null}un();function dn(){let e=globalThis;return e[nn]||(e[nn]=ln({children:[]})),e[nn]??null}function fn(){let e=globalThis;return e[an]||(e[an]=ln(null)),e[an]??null}function pn(){let e=globalThis;return e[on]||(e[on]=ln(null)),e[on]??null}var mn=Symbol.for(`vinext.navigation.globalAccessors`);function hn(){let e=globalThis;return e[cn]??={serverContext:null,serverInsertedHTMLCallbacks:[]}}function gn(){return globalThis[mn]}function _n(){let e=globalThis;if(Object.prototype.hasOwnProperty.call(e,sn))return e[sn]??null}function vn(e){globalThis[sn]=e}function yn(){vn(null)}var bn=()=>{{let e=_n();return e===void 0?hn().serverContext:e}return gn()?.getServerContext()??hn().serverContext},xn=e=>{hn().serverContext=e,vn(e)};function Sn(){return bn()}function Cn(e){xn(e)}var wn=`NEXT_REDIRECT;`;function Tn(e){if(!e.startsWith(wn))return null;let t=e.indexOf(`;`,14);if(t===-1)return null;let n=e.slice(t+1),r=n.match(/;(303|307|308);?$/),i=n!==``&&e.endsWith(`;`);if(i&&!r)return null;let a=r?n.slice(0,-r[0].length):n,o=a;if(!i)try{o=decodeURIComponent(a)}catch{return null}return{status:r?Number(r[1]):307,type:e.slice(14,t)||null,url:o}}var En=`NEXT_HTTP_ERROR_FALLBACK`,Dn=class extends Error{digest;constructor(e,t){super(e),this.digest=t}};function On(){throw new Dn(`NEXT_NOT_FOUND`,`${En};404`)}function kn(e){return!!e&&typeof e==`object`&&`digest`in e&&typeof e.digest==`string`&&e.digest.startsWith(`NEXT_REDIRECT;`)}function An(e){let t=Tn(e);return t?{url:t.url,type:t.type===`push`?`push`:`replace`}:null}var jn=e({default:()=>Fn}),V={container:{fontFamily:`system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"`,height:`100vh`,display:`flex`,alignItems:`center`,justifyContent:`center`},card:{marginTop:`-32px`,maxWidth:`325px`,padding:`32px 28px`,textAlign:`left`},icon:{marginBottom:`24px`},title:{fontSize:`24px`,fontWeight:500,letterSpacing:`-0.02em`,lineHeight:`32px`,margin:`0 0 12px 0`,color:`var(--next-error-title)`},message:{fontSize:`14px`,fontWeight:400,lineHeight:`21px`,margin:`0 0 20px 0`,color:`var(--next-error-message)`},form:{margin:0},buttonGroup:{display:`flex`,gap:`8px`,alignItems:`center`},button:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-text)`,background:`var(--next-error-btn-bg)`,border:`var(--next-error-btn-border)`},buttonSecondary:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,height:`32px`,padding:`0 12px`,fontSize:`14px`,fontWeight:500,lineHeight:`20px`,borderRadius:`6px`,cursor:`pointer`,color:`var(--next-error-btn-secondary-text)`,background:`var(--next-error-btn-secondary-bg)`,border:`var(--next-error-btn-secondary-border)`},digestFooter:{position:`fixed`,bottom:`32px`,left:`0`,right:`0`,textAlign:`center`,fontFamily:`ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,monospace`,fontSize:`12px`,lineHeight:`18px`,fontWeight:400,margin:`0`,color:`var(--next-error-digest)`}},Mn=` :root { --next-error-bg: #fff; --next-error-text: #171717; --next-error-title: #171717; --next-error-message: #171717; --next-error-digest: #666666; --next-error-btn-text: #fff; --next-error-btn-bg: #171717; --next-error-btn-border: none; --next-error-btn-secondary-text: #171717; --next-error-btn-secondary-bg: transparent; --next-error-btn-secondary-border: 1px solid rgba(0,0,0,0.08); } @media (prefers-color-scheme: dark) { :root { --next-error-bg: #0a0a0a; --next-error-text: #ededed; --next-error-title: #ededed; --next-error-message: #ededed; --next-error-digest: #a0a0a0; --next-error-btn-text: #0a0a0a; --next-error-btn-bg: #ededed; --next-error-btn-border: none; --next-error-btn-secondary-text: #ededed; --next-error-btn-secondary-bg: transparent; --next-error-btn-secondary-border: 1px solid rgba(255,255,255,0.14); } } body { margin: 0; color: var(--next-error-text); background: var(--next-error-bg); } `.replace(/\n\s*/g,``);function Nn(){return(0,z.jsx)(`svg`,{width:`32`,height:`32`,viewBox:`-0.2 -1.5 32 32`,fill:`none`,style:V.icon,children:(0,z.jsx)(`path`,{d:`M16.9328 0C18.0839 0.000116771 19.1334 0.658832 19.634 1.69531L31.4299 26.1309C32.0708 27.4588 31.1036 28.9999 29.6291 29H2.00215C0.527541 29 -0.439628 27.4588 0.201371 26.1309L11.9973 1.69531C12.4979 0.658823 13.5474 7.75066e-05 14.6984 0H16.9328ZM3.59493 26H28.0363L16.9328 3H14.6984L3.59493 26ZM15.8156 19C16.9202 19.0001 17.8156 19.8955 17.8156 21C17.8156 22.1045 16.9202 22.9999 15.8156 23C14.7111 23 13.8156 22.1046 13.8156 21C13.8156 19.8954 14.7111 19 15.8156 19ZM17.3156 16.5H14.3156V8.5H17.3156V16.5Z`,fill:`var(--next-error-title)`})})}function Pn(){window.history.length>1?window.history.back():window.location.href=`/`}function Fn({error:e}){let t=e?.digest,n=!!t,r=n?`A server error occurred. Reload to try again.`:`Reload to try again, or go back.`;return(0,z.jsxs)(`html`,{id:`__next_error__`,children:[(0,z.jsx)(`head`,{children:(0,z.jsx)(`style`,{dangerouslySetInnerHTML:{__html:Mn}})}),(0,z.jsxs)(`body`,{children:[(0,z.jsx)(`div`,{style:V.container,children:(0,z.jsxs)(`div`,{style:V.card,children:[(0,z.jsx)(Nn,{}),(0,z.jsx)(`h1`,{style:V.title,children:`This page couldn’t load`}),(0,z.jsx)(`p`,{style:V.message,children:r}),(0,z.jsxs)(`div`,{style:V.buttonGroup,children:[(0,z.jsx)(`form`,{style:V.form,children:(0,z.jsx)(`button`,{type:`submit`,style:V.button,children:`Reload`})}),!n&&(0,z.jsx)(`button`,{type:`button`,style:V.buttonSecondary,onClick:Pn,children:`Back`})]})]})}),t&&(0,z.jsxs)(`p`,{style:V.digestFooter,children:[`ERROR `,t]})]})]})}function In(){return window.next?.__pendingUrl??null}function Ln(e){let t=In();return t===null?null:t.href===new URL(e,window.location.href).href?t:null}function Rn(e){if(window.next?.__pendingUrl!==void 0){if(e instanceof URL){if(window.next.__pendingUrl!==e)return}else if(e!==void 0&&window.next.__pendingUrl.href!==new URL(e,window.location.href).href)return;delete window.next.__pendingUrl}}function zn(e){return!1}function Bn(e,t){return t?e===t||e.startsWith(t+`/`):!1}function H(e,t){return Bn(e,t)?e.slice(t.length)||`/`:e}var Vn=class{run(e,t,...n){return t(...n)}getStore(){}enterWith(){}exit(e,...t){return e(...t)}disable(){}},Hn=globalThis,Un=Symbol.for(`vinext.als.registry`),Wn=Hn[Un]??=new Set,Gn=class{getStore(){}run(e,t,...n){return t(...n)}exit(e,...t){return e(...t)}enterWith(e){}disable(){}};function Kn(e){let t=Symbol.for(e),n=Hn[t]??=typeof Vn==`function`?new Vn:new Gn;return Wn.add(n),n}Kn(`vinext.pprFallbackShell.als`),Kn(`vinext.pprFallbackShell.cacheTaskStack.als`);var qn=Symbol.for(`vinext.clientNavigationState`),Jn=Symbol.for(`vinext.clientNavigationRenderContext`),Yn=``;function Xn(){return globalThis[qn]}function Zn(){return Xn()?.cachedPathname??H(window.location.pathname,Yn)}function Qn(){return Sn()?.pathname??`/`}function $n(e){let t=Xn();return t?(t.listeners.add(e),()=>t.listeners.delete(e)):()=>{}}function er(){let e=globalThis;return e[Jn]??=l.createContext(null)}function tr(){let e=l.useContext(er()),t=l.useSyncExternalStore($n,Zn,Qn);return e&&(Xn()?.navigationSnapshotActiveCount??0)>0?e.pathname:t}function nr(){if(!Jt||typeof l.useContext!=`function`)throw Error(`invariant expected app router to be mounted`);let e=l.useContext(Jt);if(e===null)throw Error(`invariant expected app router to be mounted`);return e}var rr=`vinext:dev-error-recovery`;function ir(e){return!e||typeof e!=`object`||!(`digest`in e)?null:String(e.digest)}function ar(e){let t=ir(e);return t===null?!1:t===`NEXT_NOT_FOUND`||t.startsWith(`NEXT_HTTP_ERROR_FALLBACK;`)||t.startsWith(`NEXT_REDIRECT;`)}var or=e({DevRecoveryBoundary:()=>Tr,ErrorBoundary:()=>_r,ErrorBoundaryInner:()=>gr,ForbiddenBoundary:()=>Sr,ForbiddenBoundaryInner:()=>xr,GlobalErrorBoundary:()=>vr,NotFoundBoundary:()=>br,RedirectBoundary:()=>hr,RedirectErrorBoundary:()=>mr,SerializedErrorBoundary:()=>sr,UnauthorizedBoundary:()=>wr,UnauthorizedBoundaryInner:()=>Cr});function sr({fallback:e,error:t}){return(0,z.jsx)(e,{error:Object.assign(Error(t.message),{digest:t.digest,name:t.name??`Error`,stack:t.stack}),reset:()=>globalThis.location?.reload()})}function cr(e){return e==null||e===``?null:e}function lr(e){return{previousPathname:e.pathname,previousResetKey:cr(e.resetKey)}}function ur(e,t){let n=cr(e.previousResetKey),r=cr(t.previousResetKey);return n!==null||r!==null?n!==r:e.previousPathname!==t.previousPathname}function dr(e){window.addEventListener(rr,e)}function fr(e){window.removeEventListener(rr,e)}function pr({redirect:e,redirectType:t,reset:n}){let r=nr();return l.useEffect(()=>{l.startTransition(()=>{t===`push`?r.push(e):r.replace(e),n()})},[e,t,n,r]),null}var mr=class extends l.Component{constructor(e){super(e),this.state={redirect:null,redirectType:null}}static getDerivedStateFromError(e){if(kn(e)){if(`handled`in e&&e.handled)return{redirect:null,redirectType:null};let t=An(e.digest);if(!t)throw e;return{redirect:t.url,redirectType:t.type}}throw e}render(){let{redirect:e,redirectType:t}=this.state;return e!==null&&t!==null?(0,z.jsx)(pr,{redirect:e,redirectType:t,reset:()=>this.setState({redirect:null,redirectType:null})}):this.props.children}};function hr({children:e}){return(0,z.jsx)(mr,{children:e})}var gr=class extends l.Component{constructor(e){super(e),this.state={error:null,...lr(e)}}static getDerivedStateFromProps(e,t){let n=lr(e);return t.error&&zn(t.error.thrownValue)||t.error&&ur(n,t)?{error:null,...n}:{error:t.error,...n}}static getDerivedStateFromError(e){if(ar(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,...lr(this.props)})};componentDidMount(){dr(this.handleDevErrorRecovery)}componentWillUnmount(){fr(this.handleDevErrorRecovery)}reset=()=>{this.setState({error:null})};render(){if(this.state.error){let e=this.props.fallback;return(0,z.jsx)(e,{error:this.state.error.thrownValue,reset:this.reset})}return this.props.children}};function _r({fallback:e,children:t,resetKey:n}){return(0,z.jsx)(gr,{pathname:tr(),resetKey:n,fallback:e,children:t})}function vr({fallback:e,children:t}){return(0,z.jsx)(gr,{pathname:tr(),fallback:e,isImplicitRootErrorBoundary:e===Fn,children:t})}var yr=class extends l.Component{constructor(e){super(e),this.state={notFound:!1,...lr(e)}}static getDerivedStateFromProps(e,t){let n=lr(e);return t.notFound&&ur(n,t)?{notFound:!1,...n}:{notFound:t.notFound,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e){let t=String(e.digest);if(t===`NEXT_NOT_FOUND`||t===`NEXT_HTTP_ERROR_FALLBACK;404`)return{notFound:!0}}throw e}render(){return this.state.notFound?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function br({fallback:e,children:t,resetKey:n}){return(0,z.jsx)(yr,{pathname:tr(),resetKey:n,fallback:e,children:t})}var xr=class extends l.Component{constructor(e){super(e),this.state={forbidden:!1,...lr(e)}}static getDerivedStateFromProps(e,t){let n=lr(e);return t.forbidden&&ur(n,t)?{forbidden:!1,...n}:{forbidden:t.forbidden,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;403`)return{forbidden:!0};throw e}render(){return this.state.forbidden?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function Sr({fallback:e,children:t,resetKey:n}){return(0,z.jsx)(xr,{pathname:tr(),resetKey:n,fallback:e,children:t})}var Cr=class extends l.Component{constructor(e){super(e),this.state={unauthorized:!1,...lr(e)}}static getDerivedStateFromProps(e,t){let n=lr(e);return t.unauthorized&&ur(n,t)?{unauthorized:!1,...n}:{unauthorized:t.unauthorized,...n}}static getDerivedStateFromError(e){if(e&&typeof e==`object`&&`digest`in e&&String(e.digest)===`NEXT_HTTP_ERROR_FALLBACK;401`)return{unauthorized:!0};throw e}render(){return this.state.unauthorized?(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(`meta`,{name:`robots`,content:`noindex`}),this.props.fallback]}):this.props.children}};function wr({fallback:e,children:t,resetKey:n}){return(0,z.jsx)(Cr,{pathname:tr(),resetKey:n,fallback:e,children:t})}var Tr=class extends l.Component{constructor(e){super(e),this.state={error:null,previousResetKey:e.resetKey}}static getDerivedStateFromProps(e,t){return e.resetKey===t.previousResetKey?null:{error:null,previousResetKey:e.resetKey}}static getDerivedStateFromError(e){if(ar(e))throw e;return{error:{thrownValue:e}}}handleDevErrorRecovery=()=>{this.state.error&&this.setState({error:null,previousResetKey:this.props.resetKey})};componentDidMount(){dr(this.handleDevErrorRecovery)}componentWillUnmount(){fr(this.handleDevErrorRecovery)}componentDidCatch(){this.props.onCatch?.(this.props.resetKey)}render(){return this.state.error?null:this.props.children}},Er=Symbol.for(`vinext.appRouterScrollIntent`);function Dr(){let e=globalThis;return e[Er]??={nextId:0,pending:null},e[Er]}function Or(e){let t=Dr();t.nextId+=1;let n={commitId:null,hash:e,headElements:typeof document>`u`?null:new Set(document.head?.children??[]),id:t.nextId,targetHoistedInHead:!1};return t.pending=n,n}function kr(){let e=Dr();e.nextId+=1,e.pending=null}function Ar(){return Dr().pending}function jr(e){return e!=null&&Dr().nextId===e.id}function Mr(e,t){let n=Dr(),r=n.pending;e==null||r===null||r.id===e.id&&(n.pending={...r,commitId:t})}function Nr(e,t){let n=Dr(),r=n.pending;e==null||r===null||r.id===e.id&&r.commitId===t&&(n.pending={...r,targetHoistedInHead:!0})}function Pr(e,t){if(e==null)return null;let n=Dr(),r=n.pending;return r===null||r.id!==e.id||t!==void 0&&r.commitId!==t?null:(n.pending=null,r)}var Fr=e({AppRouterScrollCommitProvider:()=>Yr,AppRouterScrollTarget:()=>Xr,AppRouterScrollTargetInner:()=>Jr}),Ir=t(i(),1),Lr=l.createContext(null),Rr=`__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE`,zr=[`bottom`,`height`,`left`,`right`,`top`,`width`,`x`,`y`];function Br(){let e=Reflect.get(Ir,Rr);if(typeof e!=`object`||!e)return null;let t=Reflect.get(e,`findDOMNode`);return typeof t==`function`?t:null}function Vr(e){let t=Br();if(!t)return null;let n=t(e);return n instanceof Element||n instanceof Text?n:null}function Hr(e){let t=getComputedStyle(e).position;if(t===`fixed`||t===`sticky`)return!0;let n=e.getBoundingClientRect();return zr.every(e=>n[e]===0)}function Ur(e,t){let n=e.getClientRects();if(n.length===0)return!1;let r=1/0;for(let e of n)e.top=0&&r<=t}function Wr(e){let t=Qt(e.startsWith(`#`)?e.slice(1):e);return t===`top`?document.body:document.getElementById(t)??document.getElementsByName(t)[0]??null}function Gr(e){let t=e.ownerDocument?.head;return t!=null&&t.contains(e)}function Kr(e){if(!(e instanceof Element)||Gr(e))return null;let t=e;for(;!(t instanceof HTMLElement)||Hr(t);){if(t.nextElementSibling===null)return null;t=t.nextElementSibling}return{kind:`element`,element:t}}function qr(e,t){if(t!==null){e.scrollIntoView({behavior:`auto`});return}let n=document.documentElement,r=n.clientHeight;Ur(e,r)||(n.scrollTop=0,Ur(e,r)||e.scrollIntoView({behavior:`auto`,block:`start`,inline:`nearest`}))}var Jr=class extends l.Component{scheduledCommitId=null;schedulePotentialScroll=()=>{let e=this.props.commitId;this.scheduledCommitId=e,queueMicrotask(()=>{this.scheduledCommitId===e&&this.handlePotentialScroll()})};handlePotentialScroll=()=>{let e=Ar();if(e===null||this.props.commitId===null||e.commitId!==this.props.commitId)return;let t;if(t=e.hash===null?null:Wr(e.hash),t===null){t=Vr(this);let n=t instanceof Element?t:t?.parentElement;if(t!==null&&n!=null&&Gr(t)&&!e.headElements?.has(n)){Nr(e,this.props.commitId);return}}let n=Kr(t);if(n===null)return;let r=n.element,i=Pr(e,this.props.commitId);i!==null&&(qr(r,i.hash),r.focus())};componentDidMount(){this.schedulePotentialScroll()}componentDidUpdate(){this.schedulePotentialScroll()}componentWillUnmount(){this.scheduledCommitId=null}render(){return this.props.children}};function Yr({children:e,commitId:t}){return(0,z.jsx)(Lr.Provider,{value:t,children:e})}function Xr({children:e}){return(0,z.jsx)(Jr,{commitId:l.useContext(Lr),children:e})}var Zr=`slot:\0vinext_bfcache_segment_`;function Qr(e){let t=encodeURIComponent(e);return`${Zr}${t.length}_${t}_`}function $r(e){return e.startsWith(Zr)}function ei(e,t){return $r(e)&&e.startsWith(Qr(t))}var ti=e({BfcacheIdentityMapContext:()=>di,BfcacheSegmentBoundary:()=>ji,Children:()=>Li,ChildrenContext:()=>ii,ElementsContext:()=>ri,ParallelSlot:()=>Ri,ParallelSlotsContext:()=>ai,Slot:()=>Ii,UNMATCHED_SLOT:()=>Be,getNonCacheComponentsSegmentKey:()=>Mi,mergeElements:()=>Fi,resolveBfcacheSegmentStateKey:()=>Ni,stageBfcacheSlotEntryForRender:()=>vi,updateBfcacheSlotEntryOrder:()=>hi}),ni=Object.freeze({}),ri=l.createContext(ni),ii=l.createContext(null),ai=l.createContext(null),oi=fn(),si=pn(),ci=Object.freeze({}),li=3,ui=1,di=l.createContext(ci);function fi(){return!1}function pi(){return fi()?li:ui}function mi(e){return Number.isFinite(e)?Math.max(1,Math.trunc(e)):1}function hi(e,t,n=pi()){let r=mi(n),i=[t];for(let n of e){if(i.length>=r)break;n!==t&&i.push(n)}return i}function gi(e,t){let n=new Set(t);for(let t of e.keys())n.has(t)||e.delete(t)}function _i(e,t){if(e.length!==t.length)return!1;for(let n=0;ni.get(e)).filter(e=>e!==void 0),order:a,snapshots:i}}function yi(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=Object.values(e);return t.length>0&&t.every(e=>e===`s`||e===`d`)}function bi(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`schemaVersion`in e&&`appElementsSchemaVersion`in e&&`rscPayloadSchemaVersion`in e&&`graphVersion`in e&&`deploymentVersion`in e&&`rootBoundaryId`in e&&`renderEpoch`in e}function xi(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`ownerLayoutId`in e&&`slotId`in e&&`state`in e}function Si(e){return Array.isArray(e)&&e.length>0&&e.every(xi)}function Ci(e,t){return e===`__skippedLayoutIds`&&Array.isArray(t)&&t.every(e=>typeof e==`string`)}function wi(e,t){return e!==`__bfcacheSegmentIdentities`||typeof t!=`object`||!t||Array.isArray(t)?!1:Object.entries(t).every(([e,t])=>{let n=B.parseElementKey(e);return n!==null&&n.kind!==`route`&&typeof t==`string`})}function Ti(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`sourceMatchedUrl`in e&&typeof e.sourceMatchedUrl==`string`&&`sourceRouteId`in e&&typeof e.sourceRouteId==`string`&&`slotId`in e&&typeof e.slotId==`string`&&`targetMatchedUrl`in e&&typeof e.targetMatchedUrl==`string`&&`targetRouteId`in e&&typeof e.targetRouteId==`string`}function Ei(e){return typeof e!=`object`||!e||Array.isArray(e)?!1:`kind`in e&&e.kind===`runtime-cache-entry`&&`decision`in e}function Di(e,t){return yi(t)||wi(e,t)||bi(t)||Ei(t)||Ti(t)||Ci(e,t)||Si(t)}function Oi({entry:e,fallbackElements:t,fallbackSegmentId:n,fallbackStateKeyMap:r,SegmentContext:i}){return(0,z.jsx)(di.Provider,{value:e.stateKeyMap??r,children:(0,z.jsx)(ri.Provider,{value:e.elements??t,children:(0,z.jsx)(i.Provider,{value:e.segmentId??n,children:e.content})})})}function ki(e){let t=l.useRef(new Map),[n,r]=l.useState(()=>[e.stateKey]),i=vi(t.current,n,e),a=i.order,o=!_i(n,a);return l.useLayoutEffect(()=>{t.current=i.snapshots},[i.snapshots]),o&&r(a),i.entries}function Ai({activeStateKey:e,content:t,elements:n,id:r,SegmentContext:i,stateKeyMap:a}){return(0,z.jsx)(z.Fragment,{children:ki({content:t,elements:n,segmentId:r,stateKey:e,stateKeyMap:a}).map(t=>(0,z.jsx)(l.Activity,{mode:t.stateKey===e?`visible`:`hidden`,children:(0,z.jsx)(Oi,{entry:t,fallbackElements:n,fallbackSegmentId:r,fallbackStateKeyMap:a,SegmentContext:i})},t.stateKey))})}function ji({children:e,id:t,stateKey:n}){let r=l.useContext(ri),i=l.useContext(di),a=Ni(t,i,l.useContext(oi));return!si||a===void 0?(0,z.jsx)(l.Fragment,{children:e},n):fi()?(0,z.jsx)(Ai,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:si,stateKeyMap:i}):(0,z.jsx)(si.Provider,{value:t,children:e},a)}function Mi(e,t){let n=B.parseElementKey(e);return n!==null&&n.kind!==`route`?t:void 0}function Ni(e,t,n){return t[e]??n?.[e]}function Pi({content:e,id:t}){let n=si,r=l.useContext(ri),i=l.useContext(di),a=Ni(t,i,l.useContext(oi));return n?a===void 0?(0,z.jsx)(n.Provider,{value:t,children:e}):fi()?(0,z.jsx)(Ai,{activeStateKey:a,content:e,elements:r,id:t,SegmentContext:n,stateKeyMap:i}):(0,z.jsx)(n.Provider,{value:t,children:e},Mi(t,a)):(0,z.jsx)(z.Fragment,{children:e})}function Fi(e,t,n={}){let r=typeof n==`boolean`?n:n.clearAbsentSlots??!1,i=typeof n==`boolean`?!n:n.preserveAbsentSlots??!0,a=typeof n==`boolean`?[]:n.preserveElementIds??[],o=typeof n==`boolean`?[]:n.preservePreviousSlotIds??[],s={...t},c=new Set;for(let t of a)if(Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}let l=new Set([...Object.keys(e),...Object.keys(t)].filter(e=>B.isSlotId(e)&&!$r(e)));if(r)for(let e of l)Object.hasOwn(t,e)||delete s[e];else if(i){for(let t of l)if(!Object.hasOwn(s,t)&&Object.hasOwn(e,t)){let n=e[t];n!==void 0&&(s[t]=n,c.add(t))}}for(let t of o){if(!B.isSlotId(t)||!Object.hasOwn(e,t))continue;let n=e[t];if(n!==void 0&&n!==Be){s[t]=n,c.add(t);for(let n of Object.keys(e)){if(!ei(n,t))continue;let r=e[n];r!==void 0&&(s[n]=r),c.add(n)}}}if(c.size>0){let n=e[Re],r=t[Re],i=wi(Re,n),a=wi(Re,r),o=i?{...n}:{},l=a?{...r}:{},u=new Set([...Object.keys(o),...Object.keys(l)]),d=new Set(c);for(let e of d)for(let t of u)ei(t,e)&&c.add(t);for(let e of c){let t=o[e];t===void 0?delete l[e]:l[e]=t}(i||a)&&(s[Re]=l)}return s}function Ii({id:e,children:t,parallelSlots:n}){let r=l.useContext(ri);if(!Object.hasOwn(r,e))return null;let i=r[e];if(Di(e,i)||(i===Be&&On(),i===null))return null;let a=(0,z.jsx)(ai.Provider,{value:n??null,children:(0,z.jsx)(ii.Provider,{value:t??null,children:i})});return oi&&si?(0,z.jsx)(Pi,{id:e,content:a}):a}function Li(){return l.useContext(ii)}function Ri({name:e}){return l.useContext(ai)?.[e]??null}var zi=`navigation`,Bi=`prefetch-empty`,Vi=`prefetch-dynamic-shell`,Hi=`prefetch-loading-shell`;function Ui(e){switch(e){case Bi:return Bi;case Vi:return Vi;case Hi:return Hi;default:return zi}}var Wi=`x-deployment-id`;function Gi(){}function Ki(e,t=void 0){t&&e.set(Wi,t)}var qi=`_rsc`,Ji=`X-Vinext-RSC-Compatibility-Id`,Yi=`text/x-component`;[`RSC`,ue,de,fe,R,ie,P,L].join(`, `);var Xi=12,Zi=new TextEncoder;function Qi(e){let t=``;for(let n of e)t+=String.fromCharCode(n);return btoa(t).replaceAll(`+`,`-`).replaceAll(`/`,`_`).replace(/=+$/,``)}function $i(e){return e??`0`}function ea(e){return e&&e.length>0?e:null}function ta(){return ea(`8f33c0d7-a2c2-46a9-a92b-3f3b10c38021`)}function na(e,t=ta()){let n=ea(e),r=ea(t);return r===null||n!==null&&n===r}function ra(e,t,n){if(!e)return t;let r=new URL(e,n);fa(r);let i=new URL(t,n),a=pa(r.pathname);i.pathname.length>1&&i.pathname.endsWith(`/`)&&!a.endsWith(`/`)&&(a+=`/`);let o=a+r.search;return i.hash&&(o+=i.hash),o}function ia(e){return na(e.responseCompatibilityId,e.clientCompatibilityId)?{kind:`compatible`}:{hardNavigationTarget:ra(e.responseUrl,e.currentHref,e.origin),kind:`hard-navigate`}}function aa(e){let t=Ui(e);return t===`navigation`?null:t}function oa(e,t={}){let n=[e.get(de),e.get(fe),e.get(ue),e.get(R),e.get(ie),e.get(P),...t.includeRenderModeHeader===!1?[]:[aa(e.get(L))]];return n.every(e=>e===null)?null:n.map($i).join(`,`)}async function sa(e){let t=await globalThis.crypto.subtle.digest(`SHA-256`,Zi.encode(e));return Qi(new Uint8Array(t).subarray(0,Xi))}function ca(e){return(e.search.startsWith(`?`)?e.search.slice(1):e.search).split(`&`).filter(e=>e.length>0&&!la(e))}function la(e){let t=e.indexOf(`=`),n=t===-1?e:e.slice(0,t);try{return decodeURIComponent(n.replaceAll(`+`,` `))===qi}catch{return n===qi}}async function ua(e){let t=oa(e);return t===null?``:sa(t)}function da(e,t){let n=ca(e);n.push(t.length>0?`${qi}=${t}`:qi),e.search=`?${n.join(`&`)}`}function fa(e){let t=ca(e);e.search=t.length>0?`?${t.join(`&`)}`:``}function pa(e){return e.endsWith(`.rsc`)?e.slice(0,-4):e}function ma(e={}){let t=new Headers({Accept:Yi,RSC:`1`});Ki(t),e.prefetchRouterState&&(e.includePrefetchHeader!==!1&&t.set(de,`1`),t.set(ue,encodeURIComponent(JSON.stringify(e.prefetchRouterState)))),e.nextUrl&&t.set(R,e.nextUrl),e.interceptionContext!==void 0&&e.interceptionContext!==null&&t.set(ie,e.interceptionContext),e.mountedSlotsHeader!==void 0&&e.mountedSlotsHeader!==null&&t.set(P,e.mountedSlotsHeader),e.clientReuseManifestHeader!==void 0&&e.clientReuseManifestHeader!==null&&t.set(ae,e.clientReuseManifestHeader);let n=e.renderMode??`navigation`;return n!==`navigation`&&t.set(L,n),t}function ha(e){let t=e.indexOf(`#`);return t===-1?e:e.slice(0,t)}async function ga(e,t){let n=new URL(ha(e),`http://vinext.local`);return da(n,await ua(t)),`${n.pathname}${n.search}`}var _a=null;function va(e){return Object.values(e).some(e=>typeof e==`function`)?e:null}function ya(e){return _a=e,_a}function ba(e,t){_a?.onRouterTransitionStart?.(e,t)}ya(va(e({})));function xa(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}var Sa=`__vinext_previousNextUrl`,Ca=`__vinext_historyIndex`,wa=`__vinext_bfcacheIds`,Ta=`__vinext_bfcacheVersion`,Ea=class{#e;#t=new Map;constructor(e){this.#e=e.maxEntries}clear(){this.#t.clear()}remember(e){if(e.historyIndex===null||(this.#t.delete(e.historyIndex),this.#t.set(e.historyIndex,{bfcacheVersion:e.bfcacheVersion,state:e.state}),this.#t.size<=this.#e))return;let t=this.#t.keys().next().value;typeof t==`number`&&this.#t.delete(t)}resolveRestore(e){let t=Ra(e.historyState);if(t===null)return{kind:`skip`,reason:`missing-history-index`,targetHistoryIndex:t};let n=this.#t.get(t);return n?e.guarded?{kind:`skip`,reason:`guarded`,targetHistoryIndex:t}:n.bfcacheVersion===e.currentBfcacheVersion?{kind:`restore`,state:n.state,targetHistoryIndex:t}:(this.#t.delete(t),{kind:`skip`,reason:`stale-bfcache-version`,targetHistoryIndex:t}):{kind:`skip`,reason:`missing-snapshot`,targetHistoryIndex:t}}},Da=class{#e;#t=0;#n;constructor(e){let t=Fa(e.initialHistoryState);this.#e=t===null?0:t+1,this.#n=new Ea({maxEntries:e.maxHistoryStateSnapshots})}get currentBfcacheVersion(){return this.#e}beginCacheInvalidationGuard(){this.#t+=1;let e=!1;return()=>{e||(e=!0,this.#t=Math.max(0,this.#t-1))}}isCacheInvalidationGuarded(){return this.#t>0}isCurrentBfcacheVersion(e){return Ia(e,this.#e)}readCurrentBfcacheVersionHistoryIds(e){if(this.isCacheInvalidationGuarded())return null;let t=Pa(e);return t===null?null:this.isCurrentBfcacheVersion(e)?t:null}#r(){this.#e+=1}invalidateClientState(){this.#n.clear(),this.#r()}rememberHistoryStateSnapshot(e){this.#n.remember({bfcacheVersion:this.#e,historyIndex:e.historyIndex,state:e.state})}resolveHistoryStateSnapshotRestore(e){return this.#n.resolveRestore({currentBfcacheVersion:this.#e,guarded:this.isCacheInvalidationGuarded(),historyState:e})}};function Oa(e){if(!e||typeof e!=`object`)return{};let t={};for(let[n,r]of Object.entries(e))t[n]=r;return t}function ka(e){return!e||typeof e!=`object`||Array.isArray(e)?null:e}function Aa(e,t){let n=Oa(e),r=t.bfcacheIds!==void 0&&(t.bfcacheIds===null||Object.keys(t.bfcacheIds).length===0);return t.previousNextUrl===null?delete n[Sa]:n[Sa]=t.previousNextUrl,t.traversalIndex!==void 0&&(xa(t.traversalIndex)?n[Ca]=t.traversalIndex:delete n[Ca]),t.bfcacheIds!==void 0&&(r?(delete n[wa],delete n[Ta]):n[wa]={...t.bfcacheIds}),t.bfcacheVersion!==void 0&&(r?delete n[Ta]:xa(t.bfcacheVersion)?n[Ta]=t.bfcacheVersion:delete n[Ta]),Object.keys(n).length>0?n:null}function ja(e,t){let n=Ma(t),r=Ra(t),i=Pa(t),a=Fa(t);return n===null&&r===null&&i===null?e:Aa(e,{bfcacheIds:i,bfcacheVersion:i===null?void 0:a,previousNextUrl:n,traversalIndex:r})}function Ma(e){let t=ka(e)?.[Sa];return typeof t==`string`?t:null}function Na(e){let t=B.parseElementKey(e);return t?.kind===`layout`||t?.kind===`page`||t?.kind===`slot`||t?.kind===`template`}function Pa(e){let t=ka(e)?.[wa];if(!t||typeof t!=`object`||Array.isArray(t))return null;let n={};for(let[e,r]of Object.entries(t)){if(!Na(e)||typeof r!=`string`)return null;n[e]=r}return n}function Fa(e){let t=ka(e)?.[Ta];return xa(t)?t:null}function Ia(e,t){let n=Fa(e);return n!==null&&n===t}function La(e){let t=Ma(e),n=Pa(e),r=Fa(e);return t===null&&n===null?null:Aa(null,{bfcacheIds:n,bfcacheVersion:n===null?void 0:r,previousNextUrl:t})}function Ra(e){let t=ka(e)?.[Ca];return xa(t)?t:null}function za(e){let t=Ra(e.historyState),n=`unknown`;return e.currentHistoryIndex!==null&&t!==null&&(te.currentHistoryIndex&&(n=`forward`)),{direction:n,historyState:e.historyState,targetHistoryIndex:t}}var Ba=`_b_0_`,Va=0;function Ha(e){let t=/^_b_(\d+)_$/.exec(e);t&&(Va=Math.max(Va,Number(t[1])))}function Ua(){return Va+=1,`_b_${Va}_`}function Wa(e){try{return B.readMetadata(e)}catch{return null}}function Ga(e,t){let n=new Set(Object.keys(e)),r=t===void 0?Wa(e):t;for(let e of r?.layoutIds??[])n.add(e);for(let e of Object.keys(r?.bfcacheSegmentIdentities??{}))n.add(e);return Array.from(n).filter(Na)}function Ka(e){let t={};for(let n of Ga(e))t[n]=`0`;return t}function qa(e){return Wa(e.elements)?.bfcacheSegmentIdentities??{}}function Ja(e){let t=e.reuseCurrent===!1?{}:e.current;for(let e of Object.values(t))Ha(e);for(let t of Object.values(e.restored??{}))Ha(t);let n=Wa(e.currentElements),r=Wa(e.elements),i={};for(let a of Ga(e.elements,r)){let o=n?.bfcacheSegmentIdentities[a],s=r?.bfcacheSegmentIdentities[a],c=o!==void 0&&o===s?t[a]:void 0,l=(s===void 0?void 0:e.restored?.[a])??c??Ua();i[a]=l,Ha(l)}return i}function Ya(e){let t={},n=new Set(e.preservePreviousIds??[]),r=new Set(e.preservedElementIds??[]),i=[...r],a=qa({elements:e.elements});for(let o of Ga(e.elements)){let s=i.some(e=>ei(o,e)),c=(r.has(o)||s)&&a[o]===void 0?Ua():n.has(o)||s?e.previous[o]??e.next[o]:e.next[o]??e.previous[o];c!==void 0&&(t[o]=c,Ha(c))}return t}function Xa(e){return e===`none`?`server-action`:`refresh`}function Za(e){return e!==`none`}function Qa(e,t){let n=0,r=e.length;for(;n=0?null:U(`CP_INVALID_VARIANT_BUDGET`,{budgetField:e})}function uo(e){return lo(`maxDimensionCount`,e.maxDimensionCount)??lo(`maxDimensionNameLength`,e.maxDimensionNameLength)??lo(`maxDimensionValueLength`,e.maxDimensionValueLength)??lo(`maxEncodedLength`,e.maxEncodedLength)??lo(`maxValuesPerDimension`,e.maxValuesPerDimension)??lo(`maxVariantsPerRoute`,e.maxVariantsPerRoute)}function fo(e,t){let n=no(e.name);if(n.length===0)return U(`CP_DIMENSION_NAME_MISSING`,{source:e.source});if(n.length>t.maxDimensionNameLength)return U(`CP_DIMENSION_NAME_TOO_LONG`,{maxLength:t.maxDimensionNameLength,nameHash:ro(n),source:e.source});if(e.privacy===`public`&&eo.has(e.source))return U(`CP_UNSAFE_PUBLIC_DIMENSION`,{name:n,source:e.source},`privateUncacheable`);let r=to(e.values);if(r.length===0)return U(`CP_DIMENSION_VALUES_MISSING`,{name:n,source:e.source});if(r.length>t.maxValuesPerDimension)return U(`CP_DIMENSION_VALUE_COUNT_EXCEEDED`,{maxValues:t.maxValuesPerDimension,name:n,source:e.source,valueCount:r.length});for(let i of r)if(i.length>t.maxDimensionValueLength)return U(`CP_DIMENSION_VALUE_TOO_LONG`,{maxLength:t.maxDimensionValueLength,name:n,source:e.source,valueHash:ro(i)});let i=r.map(ro);return{encoded:io([e.source,e.privacy,n,i]),name:n,privacy:e.privacy,source:e.source,valueCount:i.length,valueHashes:i}}function po(e){return`code`in e}function mo(e,t,n){let r=e.get(t),i=r??new Map;r||e.set(t,i);let a=i.get(n),o=a??new Map;return a||i.set(n,o),o}function ho(e){let t=new Map,n=[];for(let r of e){let e=no(r.name),i=mo(t,r.source,r.privacy),a=i.get(e);if(a){a.values.push(...r.values);continue}let o={name:e,privacy:r.privacy,source:r.source,values:[...r.values]};i.set(e,o),n.push(o)}return n}function go(e){let t=uo(e.budget);if(t)return{kind:`breakerFallback`,fallback:t};let n=ho(e.dimensions);if(n.length>e.budget.maxDimensionCount)return{kind:`breakerFallback`,fallback:U(`CP_DIMENSION_COUNT_EXCEEDED`,{dimensionCount:n.length,maxDimensionCount:e.budget.maxDimensionCount,routeId:e.output.routeId})};let r=[];for(let t of n){let n=fo(t,e.budget);if(po(n))return{kind:`breakerFallback`,fallback:n};r.push(n)}r.sort(ao);let i=[`schema:1`,co(e.output),...r.map(e=>e.encoded)].join(`|`);return i.length>e.budget.maxEncodedLength?{kind:`breakerFallback`,fallback:U(`CP_ENCODED_VARIANT_TOO_LONG`,{encodedHash:ro(i),encodedLength:i.length,maxEncodedLength:e.budget.maxEncodedLength,routeId:e.output.routeId})}:{kind:`variant`,variant:{schemaVersion:1,cacheKey:`cp1:${ge(i)}`,output:e.output,dimensions:r,encodedLength:i.length,budget:{...e.budget}}}}function _o(e){return{routeId:e.routeId,variantCacheKeys:to(e.variantCacheKeys)}}function vo(e,t){return U(`CP_ROUTE_VARIANT_CEILING_EXCEEDED`,{existingVariantCount:t,maxVariantsPerRoute:e.budget.maxVariantsPerRoute,routeId:e.output.routeId},`privateUncacheable`,`route`)}function yo(e){if(e.routeBudget&&e.routeBudget.routeId!==e.variant.output.routeId)return{kind:`breakerFallback`,routeBudget:_o(e.routeBudget),fallback:U(`CP_ROUTE_VARIANT_BUDGET_ROUTE_MISMATCH`,{budgetRouteId:e.routeBudget.routeId,routeId:e.variant.output.routeId},`privateUncacheable`,`route`)};let t=_o(e.routeBudget??{routeId:e.variant.output.routeId,variantCacheKeys:[]}),n=t.variantCacheKeys.length,r=Qa(t.variantCacheKeys,e.variant.cacheKey);return n>e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:vo(e.variant,n)}:r.found?{kind:`variant`,variant:e.variant,routeBudget:t,didConsumeRouteVariantBudget:!1}:n>=e.variant.budget.maxVariantsPerRoute?{kind:`breakerFallback`,routeBudget:t,fallback:vo(e.variant,n)}:{kind:`variant`,variant:e.variant,routeBudget:{routeId:t.routeId,variantCacheKeys:[...t.variantCacheKeys.slice(0,r.index),e.variant.cacheKey,...t.variantCacheKeys.slice(r.index)]},didConsumeRouteVariantBudget:!0}}function bo(e){let t=go({budget:e.budget,dimensions:e.dimensions,output:e.output});return t.kind===`breakerFallback`?{kind:`breakerFallback`,routeBudget:e.routeBudget?_o(e.routeBudget):null,fallback:t.fallback}:yo({routeBudget:e.routeBudget,variant:t.variant})}function xo(e){if(e===null)return{kind:`runtime-cache-entry`,decision:null};switch(e.kind){case`reuse`:return{kind:`runtime-cache-entry`,decision:{canReuse:!0,code:e.proof.code,kind:`reuse`,reuseClass:e.proof.reuseClass}};case`fallback`:return{kind:`runtime-cache-entry`,decision:{canReuse:!1,code:e.fallback.code,kind:`reject`,mode:e.fallback.mode,scope:e.fallback.scope}};default:return so(e)}}var So=`fnv1a64`,Co={maxEntryCount:64,maxEntryIdLength:512,maxManifestBytes:4096,maxPayloadHashLength:16,maxVariantCacheKeyLength:256},wo=new TextEncoder;function To(e,t){return e.idt.id)}function Eo(e){let t=new Map;for(let n of e)t.has(n.id)||t.set(n.id,n);return Array.from(t.values()).sort(To)}function Do(e){return wo.encode(e).length}function Oo(e){return ge(e)}function ko(e){let t=e.replayWindow??{validFromVisibleCommitVersion:e.visibleCommitVersion,validUntilVisibleCommitVersion:e.visibleCommitVersion};return{entries:Eo(e.entries),hashAlgorithm:So,replayWindow:t,schemaVersion:1,visibleCommitVersion:e.visibleCommitVersion}}function Ao(e){return JSON.stringify(ko(e))}function jo(e){return`static-layout:${Oo(e)}`}function Mo(e){return _e.map(t=>[t,e.artifactCompatibility[t]])}function No(e){return Oo(JSON.stringify({artifactCompatibilityPairs:Mo(e),layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}function Po(e){return{...e.artifactCompatibility,graphVersion:`static-layout-graph:${Oo(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId}))}`,renderEpoch:`static-layout:${Oo(JSON.stringify({layoutId:e.layoutId,rootBoundaryId:e.rootBoundaryId,variantCacheKey:e.variantCacheKey}))}`}}function Fo(e){return{...e,maxEntryCount:Math.min(e.maxEntryCount,8)}}function Io(e){let t=e.entries.slice(0,e.limits.maxEntryCount),n=1,r=t.length,i=null;for(;n<=r;){let a=Math.floor((n+r)/2),o=Ao({entries:t.slice(0,a),replayWindow:{validFromVisibleCommitVersion:e.visibleCommitVersion,validUntilVisibleCommitVersion:e.visibleCommitVersion},visibleCommitVersion:e.visibleCommitVersion});Do(o)<=e.limits.maxManifestBytes?(i=o,n=a+1):r=a-1}return i}function Lo(e,t){return Object.hasOwn(e,t)}function Ro(e){let t=jo(e.layoutId),n={kind:`layout`,layoutId:e.layoutId,rootBoundaryId:e.artifactCompatibility.rootBoundaryId,routeId:t},r=bo({budget:$a,dimensions:[],output:n,routeBudget:{routeId:n.routeId,variantCacheKeys:[]}});if(r.kind!==`variant`)return null;let i=Po({artifactCompatibility:e.artifactCompatibility,layoutId:e.layoutId,rootBoundaryId:n.rootBoundaryId,routeId:n.routeId,variantCacheKey:r.variant.cacheKey});return{artifactCompatibility:i,id:e.layoutId,payloadHash:No({artifactCompatibility:i,layoutId:e.layoutId,rootBoundaryId:n.rootBoundaryId,routeId:n.routeId,variantCacheKey:r.variant.cacheKey}),privacy:`public`,variantCacheKey:r.variant.cacheKey}}function zo(e,t={}){let n=Fo(t.limits??Co),r=B.readMetadata(e.elements),i=[];for(let t of r.layoutIds){if(i.length>=n.maxEntryCount)break;if(t.length>n.maxEntryIdLength||r.layoutFlags[t]!==`s`||!Lo(e.elements,t)||B.parseElementKey(t)?.kind!==`layout`)continue;let a=Ro({artifactCompatibility:r.artifactCompatibility,layoutId:t});a&&i.push(a)}return i.length===0?null:Io({entries:i,limits:n,visibleCommitVersion:e.visibleCommitVersion})}var Bo=/([/#?\\]|%(2f|23|3f|5c))/gi;function Vo(e){return e.replace(Bo,e=>encodeURIComponent(e))}function Ho(e){try{return Vo(decodeURIComponent(e))}catch{return e}}function Uo(e){return e.split(`/`).map(e=>Ho(e)).join(`/`)}function Wo(e){return Uo(e).split(`/`).filter(Boolean)}function Go(e){try{return decodeURIComponent(e)}catch{return e}}function Ko(e){let t=Object.create(null);for(let[n,r]of e)t[n]=r;return t}function qo(e){for(let t of Object.keys(e)){let n=e[t];Array.isArray(n)?e[t]=n.map(Go):e[t]=Go(n)}}function Jo(e,t){let n=Yo(e,t);return n&&qo(n),n}function Yo(e,t){let n=Object.create(null);function r(i,a){if(a===t.length)return i===e.length;let o=t[a];if(o.startsWith(`:`)&&(o.endsWith(`+`)||o.endsWith(`*`))){let t=o.slice(1,-1),s=+!!o.endsWith(`+`);for(let o=i+s;o<=e.length;o++){let s=e.slice(i,o);if(s.length>0?n[t]=s:delete n[t],r(o,a+1))return!0}return delete n[t],!1}if(o.startsWith(`:`)){if(i>=e.length)return!1;let t=o.slice(1);return n[t]=e[i],r(i+1,a+1)?!0:(delete n[t],!1)}return i>=e.length||e[i]!==o?!1:r(i+1,a+1)}return r(0,0)?n:null}function Xo(e,t){let n=0;for(let r=0;r=1;if(i.startsWith(`:`)&&i.endsWith(`*`))return a;if(n>=e.length)return!1;if(i.startsWith(`:`)){n++;continue}if(e[n]!==i)return!1;n++}return!0}function Zo(e,t){function n(r,i){if(i===t.length)return r===e.length;let a=t[i];if(a.startsWith(`:`)&&(a.endsWith(`+`)||a.endsWith(`*`))){let t=+!!a.endsWith(`+`);for(let a=r+t;a<=e.length;a++)if(n(a,i+1))return!0;return!1}return a.startsWith(`:`)?n(r,i+1)||r=e.length||e[r]!==a?!1:n(r+1,i+1)}return n(0,0)}function Qo(e){if(e.routeManifest===null)return null;let t=H(e.currentPathname,e.basePath),n=H(e.targetPathname,e.basePath),r=Wo(t),i=Wo(n);for(let n of e.routeManifest.segmentGraph.interceptions.values())if(Xo(r,n.sourcePatternParts)&&Jo(i,n.targetPatternParts)!==null)return t;return null}function $o(e){if(e.routeManifest===null)return null;let t=H(e.currentPathname,e.basePath),n=e.currentMatchedPathname?H(e.currentMatchedPathname,e.basePath):null,r=H(e.targetPathname,e.basePath),i=Wo(t),a=n?Wo(n):null,o=Wo(r);for(let r of e.routeManifest.segmentGraph.interceptions.values())if(Zo(o,r.targetPatternParts)){if(Xo(i,r.sourcePatternParts))return t;if(n!==null&&a!==null&&Xo(a,r.sourcePatternParts))return n}return null}var es=`__next-page-redirect`;function ts(e){if(typeof e!=`object`||!e||!(`getElementById`in e))return!1;let{getElementById:t}=e;return typeof t==`function`?t.call(e,es)!==null:!1}var ns=class{#e=null;#t=0;reset(){this.#e=null}navigate(e,t,n){let r=this.#e;if(r?.href===t&&r.historyUpdateMode===n)return;let i=this.#t+1;this.#t=i,this.#e={href:t,historyUpdateMode:n,token:i};let a=()=>{let r=this.#e;r?.href!==t||r.historyUpdateMode!==n||r.token!==i||(n===`replace`?e.location.replace(t):e.location.assign(t))};if(typeof e.requestAnimationFrame==`function`){e.requestAnimationFrame(()=>{e.setTimeout(a,0)});return}e.setTimeout(a,0)}};new TextEncoder;var rs=new TextDecoder,is=255,as=0,os=2,ss=4,cs=256;function ls(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function us(){throw Error(`Invalid or truncated RSC completion metadata footer`)}function ds(e){if(e.byteLength>cs)throw Error(`RSC completion metadata exceeded its framing limit`);if(e.byteLength<6||e[0]!==is||e[1]!==as)return us();let t=e.byteLength-ss;if(new DataView(e.buffer,e.byteOffset+t,ss).getUint32(0)!==t-os)return us();try{let n=JSON.parse(rs.decode(e.subarray(os,t)));if(typeof n!=`object`||!n)return us();let r=n;if(!ls(r.dynamicStaleTimeSeconds))return us();let i=Object.hasOwn(r,`serverStaleTimeSeconds`),a=r.serverStaleTimeSeconds;return i&&a!==null&&!ls(a)?us():{dynamicStaleTimeSeconds:r.dynamicStaleTimeSeconds,...i?{serverStaleTimeSeconds:a}:{}}}catch{return us()}}function fs(e){let t=new Uint8Array(e),n=t.indexOf(is);if(n===-1)return{buffer:e};let r=new Uint8Array(t.byteLength);r.set(t.subarray(0,n));let i=n;for(let e=n;e{i.length!==0&&(r.enqueue(Uint8Array.from(i)),i.length=0)},o=0;for(;ocs){r.error(Error(`RSC completion metadata exceeded its framing limit`));return}continue}if(t){let a=e[o++];if(t=!1,a===is){i.push(is);continue}if(a===as){n=[is,as];continue}r.error(Error(`Invalid RSC completion metadata escape sequence`));return}let s=e.indexOf(is,o);if(s===-1){a(),r.enqueue(e.subarray(o));return}s>o&&(a(),r.enqueue(e.subarray(o,s))),t=!0,o=s+1}a()},flush(e){if(t){e.error(Error(`Truncated RSC completion metadata escape sequence`));return}if(n){let t=Uint8Array.from(n);try{ds(t)}catch(t){e.error(t)}}}}))}function ms(e){return e.headers.get(`X-Vinext-Rsc-Completion-Metadata`)!==`1`||!e.body?e:new Response(ps(e.body),{headers:e.headers,status:e.status,statusText:e.statusText})}var hs=`[\\u0000-\\u001F \\u200B\\uFEFF]*`,gs=`[\\r\\n\\t]*`;function _s(e){let t=e.split(``).join(gs);return RegExp(`^${hs}${t}${gs}:`,`i`)}var vs=[_s(`javascript`),_s(`data`),_s(`vbscript`)],ys=`Next.js has blocked a javascript: URL as a security precaution.`;function bs(e){let t=``+e;return vs.some(e=>e.test(t))}function xs(){console.error(ys)}function Ss(e,t=Error){if(bs(e))throw xs(),new t(ys)}var Cs=10;function ws(e,t){return t===null||!bs(t)?!1:(e.body?.cancel().catch(()=>{}),xs(),!0)}function Ts(e,t){let n=new URL(e,t);return fa(n),`${pa(n.pathname)}${n.search}${n.hash}`}function Es(e,t){let n=new URL(e,t);return`${n.pathname}${n.search}${n.hash}`}function Ds(e){if(e.targetUrl.origin!==e.origin)return{href:e.targetUrl.href,kind:`terminal-hard-navigation`,reason:`externalRedirect`,redirectDepth:e.redirectDepth};let t=e.redirectedHref;if(t===Ts(e.currentHref,e.origin))return{href:t,kind:`no-redirect`};let n=e.maxRedirectDepth??Cs;return e.redirectDepth>=n?{href:t,kind:`terminal-hard-navigation`,reason:`maxRedirectsExceeded`,redirectDepth:e.redirectDepth}:{href:t,historyUpdateMode:e.historyUpdateMode,kind:`follow`,previousNextUrl:e.requestPreviousNextUrl,redirectDepth:e.redirectDepth+1}}function Os(e){let t=new URL(e.responseUrl,e.origin);return Ds({...e,redirectedHref:ra(t.href,e.currentHref,e.origin),targetUrl:t})}function ks(e){let t=new URL(e.streamedRedirectTarget,e.origin);return Ds({...e,redirectedHref:Es(e.streamedRedirectTarget,e.origin),targetUrl:t})}var W={cacheProofRejected:`NC_CACHE_REJECT`,cacheReuseTokenRejected:`NC_CACHE_TOKEN_REJECT`,commitCurrent:`NC_COMMIT`,crossDocumentFlight:`NC_CROSS_DOC_FLIGHT`,fetchFresh:`NC_FETCH_FRESH`,invalidRscPayload:`NC_RSC_INVALID`,interceptedCommitCurrent:`NC_INTERCEPT_COMMIT`,interceptedRejectedIncompatibleRoot:`NC_INTERCEPT_REJECT_ROOT`,interceptedRejectedMissingProof:`NC_INTERCEPT_REJECT_MISSING_PROOF`,interceptedRejectedMissingSlotProof:`NC_INTERCEPT_REJECT_SLOT`,interceptedRejectedTargetMismatch:`NC_INTERCEPT_REJECT_TARGET`,interceptedRejectedUndeclaredTopology:`NC_INTERCEPT_REJECT_GRAPH`,interceptedRejectedUnknownSource:`NC_INTERCEPT_REJECT_SOURCE`,optimisticRouteShell:`NC_OPTIMISTIC_SHELL`,prefetchOnly:`NC_PREFETCH_ONLY`,prefetchResponseReuse:`NC_PREFETCH_REUSE`,proceedToCommit:`NC_RSC_PROCEED`,redirectFollow:`NC_RSC_REDIRECT_FOLLOW`,redirectTerminalDepth:`NC_RSC_REDIRECT_DEPTH`,redirectTerminalExternal:`NC_RSC_REDIRECT_EXTERNAL`,requestWork:`NC_REQUEST`,rootBoundaryChanged:`NC_ROOT`,rootBoundaryUnknown:`NC_ROOT_UNKNOWN`,rscCompatibilityMismatch:`NC_RSC_COMPAT_MISMATCH`,rscNavigationError:`NC_RSC_NAV_ERROR`,sameDocumentScroll:`NC_SAME_DOC_SCROLL`,samePageSearch:`NC_SAME_PAGE_SEARCH`,serverActionRedirectCompatibilityMismatch:`NC_SA_REDIRECT_COMPAT`,serverActionRscCompatibilityMismatch:`NC_SA_RSC_COMPAT`,staleOperation:`NC_STALE`,streamedRedirectLoop:`NC_RSC_STREAMED_REDIRECT_LOOP`,visitedResponseReuse:`NC_VISITED_REUSE`},As={hardNavigate:`NT_HARD_NAVIGATE`,noCommit:`NT_NO_COMMIT`,visibleCommit:`NT_VISIBLE_COMMIT`};function js(e){return{...e.activeNavigationId===void 0?{}:{activeNavigationId:e.activeNavigationId},currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.currentVisibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,...e.startedNavigationId===void 0?{}:{startedNavigationId:e.startedNavigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion}}function Ms(e,t={}){return{code:e,fields:{...t}}}function G(e,t={}){return{schemaVersion:0,entries:[Ms(e,t)]}}function Ns(e,t,n={}){return{schemaVersion:e.schemaVersion,entries:[Ms(t,n),...e.entries]}}var Ps=[`navigation`,`visibleCommit`,`graphVersion`,`cacheVariant`];function Fs(e,t,n){switch(e){case`navigation`:return t.navigationId===n.activeNavigationId?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleNavigation`};case`visibleCommit`:return t.baseVisibleCommitVersion===n.visibleCommitVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`staleVisibleCommit`};case`graphVersion`:return t.graphVersion===null||n.graphVersion===null?{kind:`absent`,missingReason:`graphVersionMissing`}:t.graphVersion===n.graphVersion?{kind:`satisfied`}:{kind:`mismatch`,reason:`graphVersionMismatch`};case`cacheVariant`:{let e=t.cacheVariantFingerprint,r=n.installedCacheVariantFingerprint;return e===void 0||r===null?{kind:`absent`,missingReason:`cacheVariantMissing`}:e===r?{kind:`satisfied`}:{kind:`mismatch`,reason:`cacheVariantMismatch`}}default:throw Error(`[vinext] Unknown operation-token dimension: `+String(e))}}function Is(e,t,n){let r=new Set(n.require),i=new Set([...n.check,...n.require]);for(let n of Ps){if(!i.has(n))continue;let a=Fs(n,e,t);if(a.kind===`mismatch`)return{authorized:!1,reason:a.reason};if(a.kind===`absent`&&r.has(n))return{authorized:!1,reason:a.missingReason}}return{authorized:!0,token:e}}function Ls(e,t){return Is(e,{activeNavigationId:t.activeNavigationId,visibleCommitVersion:t.visibleCommitVersion,graphVersion:e.graphVersion,installedCacheVariantFingerprint:e.cacheVariantFingerprint??null},{check:[`navigation`,`visibleCommit`],require:[`navigation`,`visibleCommit`]})}function Rs(e,t){return Is(e,{activeNavigationId:e.navigationId,visibleCommitVersion:e.baseVisibleCommitVersion,graphVersion:t.graphVersion,installedCacheVariantFingerprint:t.installedCacheVariantFingerprint},{check:[`graphVersion`,`cacheVariant`],require:[]})}function zs(e,t){return e===`push`||t===`push`?`push`:`replace`}var Bs=`\0`,Vs=`CP_CACHE_ENTRY_PROOF_MISSING`;function Hs(e){let t=e.work.kind===`traverseFlight`?{traverseDirection:e.work.direction}:{};return{kind:`requestWork`,token:e.state.nextOperationToken,work:e.work,trace:G(W.requestWork,{eventKind:e.eventKind,targetHref:Us(e.work),...t})}}function Us(e){switch(e.kind){case`flight`:case`prefetch`:return e.href;case`traverseFlight`:return null;default:throw Error(`[vinext] Unknown requested navigation work: `+String(e))}}function Ws(e,t={}){return{fetchResultSource:e.source,...t}}function Gs(e){return{discardBody:e.discardBody,kind:`hardNavigate`,...e.hardNavigationMode===void 0?{}:{hardNavigationMode:e.hardNavigationMode},reason:e.reason,trace:G(e.reasonCode,Ws(e.facts,{...e.redirectSignal===void 0?{}:{redirectSignal:e.redirectSignal},redirectDepth:e.facts.redirectDepth,targetHref:e.url})),url:e.url}}function Ks(e){return{discardBody:e.discardBody,kind:`followRedirect`,redirect:e.redirect,trace:G(W.redirectFollow,Ws(e.facts,{redirectDepth:e.redirect.redirectDepth,redirectSignal:e.redirectSignal,targetHref:e.redirect.href}))}}function qs(e){switch(e){case`externalRedirect`:return{hardNavigationReason:`externalRedirectTarget`,traceReasonCode:W.redirectTerminalExternal};case`maxRedirectsExceeded`:return{hardNavigationReason:`redirectDepthExhausted`,traceReasonCode:W.redirectTerminalDepth};default:throw Error(`[vinext] Unknown RSC redirect terminal reason: `+String(e))}}function Js(e){if(!e.responseOk||!e.isRscContentType||!e.hasBody){let t=ra(e.responseUrl,e.currentHref,e.origin);return Gs({discardBody:!1,facts:e,reason:`invalidRscPayload`,reasonCode:W.invalidRscPayload,url:t})}let t=ia({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl});if(t.kind===`hard-navigate`)return Gs({discardBody:!1,facts:e,reason:`rscCompatibilityMismatch`,reasonCode:W.rscCompatibilityMismatch,url:t.hardNavigationTarget});if(e.responseUrl!==null){let t=Os({currentHref:e.currentHref,historyUpdateMode:e.effectiveHistoryUpdateMode,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,responseUrl:e.responseUrl});if(t.kind===`terminal-hard-navigation`){let n=qs(t.reason);return Gs({discardBody:!1,facts:e,reason:n.hardNavigationReason,reasonCode:n.traceReasonCode,redirectSignal:`response-url`,url:t.href})}if(t.kind===`follow`)return Ks({discardBody:!1,facts:e,redirect:{href:t.href,historyUpdateMode:e.effectiveHistoryUpdateMode,previousNextUrl:t.previousNextUrl,redirectDepth:t.redirectDepth},redirectSignal:`response-url`})}if(e.streamedRedirectTarget!==null){let t=zs(e.effectiveHistoryUpdateMode,e.streamedRedirectType),n=ks({currentHref:e.currentHref,historyUpdateMode:t,origin:e.origin,redirectDepth:e.redirectDepth,requestPreviousNextUrl:e.requestPreviousNextUrl,streamedRedirectTarget:e.streamedRedirectTarget});if(n.kind===`terminal-hard-navigation`){let r=qs(n.reason);return Gs({discardBody:!0,facts:e,reason:r.hardNavigationReason,reasonCode:r.traceReasonCode,redirectSignal:`streamed-header`,hardNavigationMode:t===`push`?`assign`:`replace`,url:n.href})}return n.kind===`follow`?Ks({discardBody:!0,facts:e,redirect:{href:n.href,historyUpdateMode:t,previousNextUrl:n.previousNextUrl,redirectDepth:n.redirectDepth},redirectSignal:`streamed-header`}):Gs({discardBody:!0,facts:e,reason:`streamedRedirectLoop`,reasonCode:W.streamedRedirectLoop,redirectSignal:`streamed-header`,url:n.href})}return{discardBody:!1,kind:`proceedToCommit`,trace:G(W.proceedToCommit,Ws(e))}}function Ys(e,t){return G(e,{targetHref:t.targetHref})}function Xs(e){let t,n;try{t=new URL(e.currentHref),n=new URL(e.targetHref,e.currentHref)}catch{return{bypassNavigationCache:!1,kind:`flightNavigation`,trace:Ys(W.crossDocumentFlight,e)}}let r=t.origin===n.origin&&H(t.pathname,e.basePath)===H(n.pathname,e.basePath),i=t.searchParams.toString()===n.searchParams.toString();return r&&i&&n.hash!==``?{hash:n.hash,kind:`sameDocumentScroll`,mode:e.mode,scroll:e.scroll,trace:Ys(W.sameDocumentScroll,e)}:r&&!i?{bypassNavigationCache:!0,kind:`flightNavigation`,trace:Ys(W.samePageSearch,e)}:{bypassNavigationCache:!1,kind:`flightNavigation`,trace:Ys(W.crossDocumentFlight,e)}}function Zs(e){return e.candidate===`missing`?{kind:`miss`}:e.mountedSlotsMatch?e.navigationKind===`refresh`?{kind:`evict`,reason:`refresh`}:e.fresh?{kind:`reuse`}:{kind:`evict`,reason:`stale`}:{kind:`evict`,reason:`mountedSlotsMismatch`}}function Qs(e,t,n={}){return G(e,{eventKind:t.navigationKind,targetHref:t.targetHref,...n})}function $s(e,t){return{kind:`fetchFresh`,reason:t,trace:Qs(W.fetchFresh,e,{freshFetchReason:t})}}function ec(e){return e.navigationKind===`refresh`?$s(e,`refresh`):!e.bypassNavigationCache&&e.visitedResponse.status===`available`?{kind:`reuseVisitedResponse`,trace:Qs(W.visitedResponseReuse,e)}:!e.bypassNavigationCache&&e.prefetch.status===`available`?{kind:`consumePrefetch`,trace:Qs(W.prefetchResponseReuse,e)}:e.navigationKind===`navigate`?e.optimisticRouteShell.status===`available`?{kind:`attemptOptimisticRouteShell`,trace:Qs(W.optimisticRouteShell,e)}:$s(e,e.bypassNavigationCache?`cacheBypassed`:e.optimisticRouteShell.reason):e.bypassNavigationCache?$s(e,`cacheBypassed`):$s(e,`cacheMiss`)}function tc(e){return e.visitedResponse.status===`available`?{kind:`skip`,reason:`visitedResponseAvailable`}:e.navigationKind===`refresh`?{kind:`skip`,reason:`refresh`}:e.bypassNavigationCache?{kind:`skip`,reason:`cacheBypassed`}:{kind:`probe`}}function nc(e){return{layoutIds:e.layoutIds,rootBoundaryId:e.rootBoundaryId,rootLayoutTreePath:e.rootBoundaryId,slotBindings:e.slotBindings}}function rc(e){let t=e.indexOf(Bs);return t===-1?e:e.slice(0,t)}function ic(e){let t=rc(e);return t.startsWith(`route:/`)?t.slice(6):null}function ac(e){try{return new URL(e,`https://vinext.local`).pathname}catch{let[t=``]=e.split(`#`),[n=``]=t.split(`?`);return n===``?`/`:n}}function oc(e){return Wo(ac(e))}function sc(e,t){let n=oc(t);for(let t of e.segmentGraph.routes.values())if(Jo(n,t.patternParts)!==null)return t;return null}function cc(e,t){return Jo(oc(t),e.patternParts)!==null}function lc(e){let t=rc(e.routeId),n=e.routeManifest.segmentGraph.routes.get(t);if(n&&cc(n,e.matchedUrl))return n;let r=n===void 0?ic(e.routeId):null;if(r!==null){let t=sc(e.routeManifest,r);if(t!==null)return t}return sc(e.routeManifest,e.matchedUrl)}function uc(e,t){return t.interception===null?lc({matchedUrl:t.matchedUrl,routeId:t.routeId,routeManifest:e}):lc({matchedUrl:t.interception.sourceMatchedUrl,routeId:t.interception.sourceRouteId,routeManifest:e})}function dc(e,t){let n=[];for(let r of t.slotIds){let i=e.segmentGraph.slotBindings.get(`${t.id}::${r}`);i&&n.push({ownerLayoutId:i.ownerLayoutId,slotId:i.slotId,state:i.state})}return n.sort((e,t)=>We(e.slotId,t.slotId))}function fc(e,t){return t.rootBoundaryId===null?null:e.segmentGraph.rootBoundaries.get(t.rootBoundaryId)?.treePath??null}function pc(e){let t=e.routeManifest===null?null:uc(e.routeManifest,e.snapshot);if(t===null||e.routeManifest===null)return{kind:`unknown`};let n=e.slotBindingSource===`manifestTarget`&&e.snapshot.interception===null;return{kind:`known`,topology:{layoutIds:t.layoutIds,rootBoundaryId:t.rootBoundaryId,rootLayoutTreePath:fc(e.routeManifest,t),slotBindings:n?dc(e.routeManifest,t):e.snapshot.slotBindings}}}function mc(e,t){let n=oc(t.sourceMatchedUrl),r=oc(t.targetMatchedUrl),i=lc({matchedUrl:t.targetMatchedUrl,routeId:t.targetRouteId,routeManifest:e}),a=e.segmentGraph.interceptionsBySlotId.get(t.slotId)??[];for(let e of a){if(!Xo(n,e.sourcePatternParts))continue;let t=Jo(r,e.targetPatternParts),a=t===null&&Zo(r,e.targetPatternParts);if(!(t===null&&!a)&&!(!a&&e.targetRouteId!==null&&i?.id!==e.targetRouteId))return e}return null}function hc(e){return e.state.traceFields?{...e.state.traceFields,currentRootLayoutTreePath:e.currentRootLayoutTreePath,nextRootLayoutTreePath:e.nextRootLayoutTreePath}:js({currentRootLayoutTreePath:e.currentRootLayoutTreePath,currentVisibleCommitVersion:e.state.visibleCommitVersion,nextRootLayoutTreePath:e.nextRootLayoutTreePath,startedVisibleCommitVersion:e.event.token.baseVisibleCommitVersion})}function gc(e,t){return e===null||t===null?`rootBoundaryUnknown`:e===t?`currentRootBoundary`:`rootBoundaryChanged`}function _c(e,t){return vc(nc(e),nc(t))}function vc(e,t){if(gc(e.rootBoundaryId,t.rootBoundaryId)!==`currentRootBoundary`)return[];let n=[],r=Math.min(e.layoutIds.length,t.layoutIds.length);for(let i=0;ie.slotId===t.slotId);return!o||o.state!==`active`||o.ownerLayoutId===null||!a.has(o.ownerLayoutId)?{kind:`rejected`,reasonCode:W.interceptedRejectedMissingSlotProof}:r!==null&&o.ownerLayoutId!==r.ownerLayoutId?{kind:`rejected`,reasonCode:W.interceptedRejectedUndeclaredTopology}:{kind:`approved`,preserveElementIds:i,preservePreviousSlotIds:wc({currentSlotBindings:e.currentTopology.slotBindings,preservedLayoutIds:i,targetSlotBindings:e.targetTopology.slotBindings}).filter(e=>e!==t.slotId)}}function Pc(e){let t=e.event.result.targetSnapshot,n=pc({routeManifest:e.routeManifest,slotBindingSource:`snapshot`,snapshot:e.state.visibleSnapshot}),r=pc({routeManifest:e.routeManifest,slotBindingSource:`manifestTarget`,snapshot:t}),i=hc({currentRootLayoutTreePath:n.kind===`known`?n.topology.rootLayoutTreePath:null,event:e.event,nextRootLayoutTreePath:r.kind===`known`?r.topology.rootLayoutTreePath:null,state:e.state});if(e.event.token.lane===`prefetch`)return{kind:`noCommit`,reason:`prefetchOnly`,token:e.event.token,trace:G(W.prefetchOnly,i)};let a=Dc(e.event.result.cacheEntryReuseProof);if(a.kind===`rejected`)return kc({event:e.event,rejection:a,traceFields:i});let o=a.decision;if(o!==null){let t=Rs(e.event.token,{graphVersion:e.routeManifest?.graphVersion??null,installedCacheVariantFingerprint:null});if(!t.authorized)return Ac({event:e.event,reason:t.reason,traceFields:i})}let s=jc(i,o),c=Mc(o);if(t.interception!==null){if(n.kind===`unknown`||r.kind===`unknown`)return Ec({event:e.event,reasonCode:W.interceptedRejectedUndeclaredTopology,traceFields:s});let i=Nc({currentSnapshot:e.state.visibleSnapshot,currentTopology:n.topology,restoredHistorySnapshot:e.event.result.restoredHistorySnapshot===!0,routeManifest:e.routeManifest,targetSnapshot:t,targetTopology:r.topology});return i.kind===`rejected`?Ec({event:e.event,reasonCode:i.reasonCode,traceFields:s}):{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:i.preserveElementIds,preservePreviousSlotIds:i.preservePreviousSlotIds,reason:`interceptedCurrentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:G(W.interceptedCommitCurrent,s)}}let l=n.kind===`unknown`||r.kind===`unknown`?`rootBoundaryUnknown`:gc(n.topology.rootBoundaryId,r.topology.rootBoundaryId);if(l===`rootBoundaryChanged`)return{kind:`hardNavigate`,reason:`rootBoundaryChanged`,token:e.event.token,trace:G(W.rootBoundaryChanged,s),url:e.event.result.href};if(l===`rootBoundaryUnknown`)return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:[],preservePreviousSlotIds:[],reason:`unprovenTopologyFallback`,targetSnapshot:t},token:e.event.token,trace:G(W.rootBoundaryUnknown,s)};if(n.kind!==`known`||r.kind!==`known`)throw Error(`[vinext] Current-root navigation planning requires manifest topology`);return{kind:`proposeCommit`,proposal:{...c,preserveAbsentSlots:!1,preserveElementIds:Sc({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),preservePreviousSlotIds:Cc({currentTopology:n.topology,lane:e.event.token.lane,targetTopology:r.topology}),reason:`currentRootBoundary`,targetSnapshot:t},token:e.event.token,trace:G(W.commitCurrent,s)}}function Fc(e){switch(e.event.kind){case`navigate`:return Hs({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`flight`,mode:e.event.mode}});case`refresh`:return Hs({eventKind:e.event.kind,state:e.state,work:{href:e.state.visibleSnapshot.displayUrl,kind:`flight`,mode:`refresh`}});case`traverse`:return Hs({eventKind:e.event.kind,state:e.state,work:{direction:e.event.direction,historyState:e.event.historyState,kind:`traverseFlight`}});case`prefetch`:return Hs({eventKind:e.event.kind,state:e.state,work:{href:e.event.href,kind:`prefetch`}});case`flightResponseArrived`:return Pc({event:e.event,routeManifest:e.routeManifest,state:e.state});default:{let t=e.event;throw Error(`[vinext] Unknown navigation event: `+String(t))}}}function Ic(e){if(e.clientCompatibilityId===null||!e.isRscContentType||ia({clientCompatibilityId:e.clientCompatibilityId,currentHref:e.currentHref,origin:e.origin,responseCompatibilityId:e.compatibilityIdHeader,responseUrl:e.responseUrl}).kind===`compatible`)return{kind:`proceed`,trace:G(W.proceedToCommit,{})};if(e.actionRedirectHref!==null)return{kind:`hardNavigate`,url:e.actionRedirectHref,historyMode:e.actionRedirectType===`push`?`assign`:`replace`,clearClientNavigationCaches:!0,reason:`serverActionRedirectCompatibilityMismatch`,trace:G(W.serverActionRedirectCompatibilityMismatch,{targetHref:e.actionRedirectHref})};let t=e.currentHref;return{kind:`hardNavigate`,url:t,clearClientNavigationCaches:!1,reason:`serverActionRscCompatibilityMismatch`,trace:G(W.serverActionRscCompatibilityMismatch,{targetHref:t})}}function Lc(e){return{kind:`hardNavigate`,url:e.currentHref,reason:`rscNavigationError`,trace:G(W.rscNavigationError,{targetHref:e.currentHref})}}var Rc={classifyEarlyNavigationIntent:Xs,classifyNavigationPrefetchProbe:tc,classifyNavigationReuse:ec,classifyRscFetchResult:Js,classifyRscNavigationError:Lc,classifyRootBoundaryTransition:gc,classifyServerActionResult:Ic,classifyVisitedResponseCacheCandidate:Zs,plan:Fc,resolveCurrentRootBoundaryElementPersistence:xc,resolveMountedParallelSlotPersistence:yc,resolveSameLayoutAncestorPersistence:_c};function zc(e){return/^[a-z][a-z0-9+.-]*:/i.test(e)||e.startsWith(`//`)}function Bc(){return{staticChildren:new Map,dynamicChild:null,catchAllChild:null,optionalCatchAllChild:null,route:null}}function Vc(e){let t=Bc();for(let n of e){let e=n.patternParts;if(e.length===0){t.route===null&&(t.route=n);continue}let r=t;for(let t=0;t=65&&t<=90||t>=97&&t<=122)&&Jc.test(e)}function Xc(e){return Yc(e)||e.startsWith(`//`)}function Zc(){let{origin:e,href:t}=window.location;if(e)return e;try{return new URL(t).origin}catch{return null}}function Qc(e){let t=Zc();if(!t)return null;try{let n=e.startsWith(`//`)?new URL(e,t):new URL(e);if(n.origin===t)return n.pathname+n.search+n.hash}catch{}return null}function $c(e,t){let n=Qc(e);if(n==null||!t)return n;try{let e=new URL(n,`http://vinext.local`);return Bn(e.pathname,t)?H(e.pathname,t)+e.search+e.hash:null}catch{return n}}function el(e,t){return!t||!e.startsWith(`/`)||Xc(e)?e:t+e}function tl(e,t,n=``){let r=t??window.location.href;if(!r||e.startsWith(`/`)||Xc(e))return e;try{let t=new URL(e,r);return(n&&t.pathname===n?``:n?H(t.pathname,n):t.pathname)+t.search+t.hash}catch{return e}}function nl(e,t,n=``){let r=tl(e,t,n);return n?r===``?n:r.startsWith(`?`)||r.startsWith(`#`)?n+r:el(r,n):el(r,n)}function rl(e,t,n=``){try{let r=new URL(t),i=new URL(e,t);return H(r.pathname,n)===H(i.pathname,n)&&r.search===i.search&&i.hash!==``}catch{return!1}}var il=String.raw`(?:^|[^\w-])[\w-]+-Google|Google-[\w-]+|Chrome-Lighthouse|Slurp|DuckDuckBot|baiduspider|yandex|sogou|bitlybot|tumblr|vkShare|quora link preview|redditbot|ia_archiver|Bingbot|BingPreview|applebot|facebookexternalhit|facebookcatalog|meta-externalagent|meta-externalfetcher|Twitterbot|LinkedInBot|Slackbot|Discordbot|WhatsApp|SkypeUriPreview|Yeti|googleweblight`,al=/Googlebot(?!-)|Googlebot$/i,ol=new Map;function sl(e){let t=e||il,n=ol.get(t);if(n)return n;let r=new RegExp(t,`i`);return ol.set(t,r),r}function cl(e,t){return e?al.test(e)?!0:sl(t).test(e):!1}var ll=class extends Error{constructor(){super("Method unavailable on `ReadonlyURLSearchParams`. Read more: https://nextjs.org/docs/app/api-reference/functions/use-search-params#updating-searchparams")}},ul=class extends URLSearchParams{append(){throw new ll}delete(){throw new ll}set(){throw new ll}sort(){throw new ll}},dl=e({cancelAppPrefetchFetch:()=>Sl,promoteAppPrefetchFetch:()=>Cl,releaseAppPrefetchFetchSlot:()=>bl,scheduleAppPrefetchFetch:()=>xl}),fl=Symbol.for(`vinext.appPrefetchFetchSlotRelease`),pl=4,ml=[],hl=new WeakMap,gl=0,_l=!1;function vl(){for(_l=!1;gln.abort()}),t.then(e=>{e[fl]=()=>hl.delete(t)},()=>hl.delete(t)),t}let r,i,a=!1,o=new Promise((t,s)=>{i=s,r=()=>{a=!0;let r=!1,i=()=>{r||(r=!0,hl.delete(o),--gl,vl())};try{e(n.signal).then(e=>{e[fl]=i,t(e)},e=>{hl.delete(o),i(),s(e)})}catch(e){hl.delete(o),i(),s(e)}}});return ml.push(r),hl.set(o,{runner:r,cancel:()=>{if(a){n.abort();return}let e=ml.indexOf(r);e!==-1&&(ml.splice(e,1),hl.delete(o),n.abort(),i(n.signal.reason))}}),yl(),o}function Sl(e){e!==void 0&&hl.get(e)?.cancel()}function Cl(e){if(e===void 0)return;let t=hl.get(e)?.runner;if(t===void 0)return;let n=ml.indexOf(t);n!==-1&&(ml.splice(n,1),gl+=1,t())}var wl=`modulepreload`,Tl=function(e){return`/`+e},El={},K=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}r=o(t.map(t=>{if(t=Tl(t,n),t in El)return;El[t]=!0;let r=t.endsWith(`.css`),i=r?`[rel="stylesheet"]`:``;if(n)for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;let o=document.createElement(`link`);if(o.rel=r?`stylesheet`:wl,r||(o.as=`script`),o.crossOrigin=``,o.href=t,a&&o.setAttribute(`nonce`,a),document.head.appendChild(o),r)return new Promise((e,n)=>{o.addEventListener(`load`,e),o.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})};function Dl(e){return null}var Ol=Symbol.for(`vinext.navigation.pagesNavigationNotify`),kl=50*1024*1024*.9;function Al(e,t){if(e===void 0||e===``)return t;let n=Number(e);return!Number.isFinite(n)||n<0?t:n*1e3}var jl=Al(`0`,3e4),Ml=Al(`300`,3e4),Nl=30,Pl=Nl*1e3;function Fl(e){let t;try{t=new URL(e,window.location.href)}catch{return null}return Qo({basePath:``,currentPathname:window.location.pathname,routeManifest:D()?.bootstrap.routeManifest??null,targetPathname:t.pathname})}function Il(){return window.location.pathname+window.location.search}function Ll(e){let t=D()?.functions.getPrefetchRouterState?.()??null;return ma({...e,nextUrl:Il(),includePrefetchHeader:e.prefetchKind!==`full`,prefetchRouterState:t})}function q(){return window.__VINEXT_RSC_PREFETCH_CACHE__||(window.__VINEXT_RSC_PREFETCH_CACHE__=new Map),window.__VINEXT_RSC_PREFETCH_CACHE__}function J(){return window.__VINEXT_RSC_PREFETCHED_URLS__||(window.__VINEXT_RSC_PREFETCHED_URLS__=new Set),window.__VINEXT_RSC_PREFETCHED_URLS__}function Rl(e){return typeof e==`number`&&Number.isFinite(e)&&Number.isInteger(e)&&e>=0}function zl(e){return typeof e==`number`&&Number.isFinite(e)&&e>=0}function Bl(e){if(e===null||e===``)return;let t=Number(e);return Rl(t)?t:void 0}function Vl(e){if(e!==void 0)return e.kind===`pending`?Nl:Math.max(e.seconds,Nl)}function Hl(e){let t=e.dynamicStaleTimeSeconds,n=Vl(e.serverStaleTime);return Rl(t)?n===void 0?t:Math.min(t,n):n}function Ul(e,t){let n=Hl(e);return n===void 0?t:n*1e3}function Wl(e,t,n){return zl(t.expiresAt)?t.expiresAt:e+Ul(t,n)}function Gl(e,t,n,r){if(zl(t.expiresAt))return t.expiresAt;let i=Vl(t.serverStaleTime);if(i!==void 0)return e+i*1e3;let a=Rl(t.dynamicStaleTimeSeconds)?t.dynamicStaleTimeSeconds:void 0;return a===void 0?e+Math.max(n,Pl):r?e+a*1e3:e+Math.max(a*1e3,Pl)}function Kl(e){return e.expiresAt===void 0?e.snapshot?Wl(e.timestamp,e.snapshot,Ml):e.timestamp+Ml:e.expiresAt}function ql(e){return e.mountedSlotsHeader===void 0?e.snapshot?.mountedSlotsHeader??null:e.mountedSlotsHeader}function Jl(e){try{let t=new URL(e,`http://vinext.local`);return fa(t),`${t.pathname}${t.search}`}catch{return null}}function Yl(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function Xl(e,t){return ql(e)===t?!0:(e.snapshot?.mountedSlotsHeader??null)===t}function Zl(e,t,n,r=[]){let i=q(),a=[e,...r];for(let e of a){let r=B.encodeCacheKey(e,t),a=i.get(r);if(a&&a.cacheForNavigation!==!1&&Xl(a,n))return{cacheKey:r,entry:a}}let o=new Set(a.map(e=>Jl(e)).filter(e=>e!==null));if(o.size===0)return null;for(let[e,r]of i){if(r.cacheForNavigation===!1)continue;let i=Yl(e);if(i.interceptionContext!==t)continue;let a=Jl(i.rscUrl);if(!(a===null||!o.has(a))&&Xl(r,n))return{cacheKey:e,entry:r}}return null}function Ql(e,t=null,n=null,r={}){let i=Zl(e,t,n,r.additionalRscUrls);return i===null?!1:i.entry.pending!==void 0||Kl(i.entry)>Date.now()?(iu(q(),i.cacheKey,i.entry),bu(i.cacheKey,i.entry,r.onInvalidate),!0):(Y(q(),J(),i.cacheKey,i.entry,r.notifyInvalidation??!0),!1)}function $l(e){return e.snapshot?.buffer.byteLength??e.size??0}var eu=null,tu=0;function nu(e){if(eu===e)return tu;let t=0,n=new Set;for(let r of e.values())n.has(r)||(n.add(r),t+=$l(r));return eu=e,tu=t,t}function ru(e,t){eu===e&&(tu=Math.max(0,tu+t))}function iu(e,t,n){if(e.get(t)===n){e.delete(t),e.set(t,n);for(let r of n.cacheKeys??[])r===t||e.get(r)!==n||(e.delete(r),e.set(r,n))}}function au(){let e=q(),t=nu(e);if(t<=52428800)return;let n=Date.now(),r=J();for(let[t,i]of e)Kl(i)<=n&&Y(e,r,t,i,!0);if(t=nu(e),t<=52428800)return;let i=0;for(;t>kl&&ihu(r),n)};pu.add(r)}function hu(e){if(pu.delete(e)){clearTimeout(e.timer);for(let t of e.callbacks)du(t)}}function Y(e,t,n,r,i){let a=r.cacheKeys??new Set([n]),o=!1;for(let n of a)e.get(n)===r&&(e.delete(n),t.delete(n),o=!0);o&&(ru(e,-$l(r)),r.cacheKeys=void 0,i?fu(r):(uu(r),r.onInvalidateCallbacks=void 0))}function gu(e,t=null){let n=q(),r=J(),i=Jl(e);if(i===null)return!1;let a=[];for(let[e,r]of n){if(r.cacheForNavigation!==!1||r.prefetchKind!==`navigation`)continue;let n=Yl(e);n.interceptionContext===t&&Jl(n.rscUrl)===i&&a.push([e,r])}for(let[e,t]of a)Sl(t.fetchPromise),Y(n,r,e,t,!0);return a.length>0}function _u(e){let t=q(),n=t.get(e);n&&Y(t,J(),e,n,!0)}function vu(e,t){if(t.onInvalidateCallbacks===void 0||t.onInvalidateCallbacks.size===0)return;uu(t);let n=Math.max(0,Kl(t)-Date.now());t.invalidationTimer=setTimeout(()=>{_u(e)},n)}function yu(e,t){t!==void 0&&(e.onInvalidateCallbacks===void 0&&(e.onInvalidateCallbacks=new Set),e.onInvalidateCallbacks.add(t))}function bu(e,t,n){n!==void 0&&(yu(t,n),t.outcome===`cache-seeded`&&vu(e,t))}function xu(e,t){if(t===void 0)return;let n=q().get(e);n&&bu(e,n,t)}function Su(){cu(null);let e=q(),t=J();for(let[n,r]of e)Y(e,t,n,r,!0);t.clear();for(let e of pu)hu(e);D()?.functions.pingVisibleLinks?.()}function Cu(e,t,n=null,r=null,i=jl){let a=B.encodeCacheKey(e,n),o=q(),s=o.get(a);s&&Y(o,J(),a,s,!1);let c=Date.now(),l={cacheForNavigation:!0,cacheKeys:new Set([a]),expiresAt:Wl(c,t,i),mountedSlotsHeader:r,outcome:`cache-seeded`,size:t.buffer.byteLength,snapshot:t,timestamp:c};o.set(a,l),ru(o,t.buffer.byteLength),J().add(a),vu(a,l),au()}function wu(e,t,n=null){let r=B.encodeCacheKey(e,n),i=q(),a=i.get(r);a?.snapshot===t&&Y(i,J(),r,a,!1)}function Tu(e,t,n=null){let r=Bl(e.headers.get(F)),i=e.headers.get(re),a=i===`1`?fs(t):{buffer:t},o=i===`resolved`?r:a.metadata?.dynamicStaleTimeSeconds??r,s=o??r,c=Eu(e.headers),l=a.metadata!==void 0&&Object.hasOwn(a.metadata,`serverStaleTimeSeconds`)?a.metadata?.serverStaleTimeSeconds===null?void 0:{kind:`resolved`,seconds:a.metadata.serverStaleTimeSeconds}:c;return{compatibilityIdHeader:e.headers.get(Ji),buffer:a.buffer,...o===void 0?{}:{completedDynamicStaleTimeSeconds:o},contentType:e.headers.get(`content-type`)??`text/x-component`,...s===void 0?{}:{dynamicStaleTimeSeconds:s},mountedSlotsHeader:e.headers.get(P),paramsHeader:e.headers.get(ne),renderedPathAndSearch:Du(e.headers.get(I)),...l===void 0?{}:{serverStaleTime:l},url:n??e.url}}function Eu(e){if(e.get(`X-Vinext-Stale-Time-Pending`)===`1`)return{kind:`pending`};let t=Bl(e.get(ce));return t===void 0?void 0:{kind:`resolved`,seconds:t}}function Du(e){if(e===null||e===``)return null;try{let t=decodeURIComponent(e);return t.startsWith(`/`)?t:null}catch{return null}}async function Ou(e){try{return Tu(e,await e.arrayBuffer())}finally{bl(e)}}function ku(e,t=!0){let n=new Headers({"content-type":e.contentType});return e.mountedSlotsHeader!=null&&n.set(P,e.mountedSlotsHeader),e.compatibilityIdHeader!=null&&n.set(Ji,e.compatibilityIdHeader),Rl(e.dynamicStaleTimeSeconds)&&n.set(F,String(e.dynamicStaleTimeSeconds)),Rl(e.completedDynamicStaleTimeSeconds)&&n.set(re,`resolved`),e.serverStaleTime?.kind===`pending`?n.set(le,`1`):e.serverStaleTime!==void 0&&n.set(ce,String(e.serverStaleTime.seconds)),e.paramsHeader!=null&&n.set(ne,e.paramsHeader),e.renderedPathAndSearch!=null&&n.set(I,encodeURIComponent(e.renderedPathAndSearch)),new Response(t?e.buffer.slice(0):e.buffer,{status:200,headers:n})}async function Au(e){let t=D()?.functions.preparePrefetchResponse;if(!t)throw Error(`App Router prefetch preparation is unavailable`);return await t(ku(e))}function ju(e,t,n=null,r=null,i,a={}){let o=B.encodeCacheKey(e,n),s=q(),c=J(),l=Date.now(),u=s.get(o);u&&Y(s,c,o,u,!1);let d={cacheForNavigation:a.cacheForNavigation??!0,cacheKeys:new Set([o]),mountedSlotsHeader:r,optimisticRouteShell:a.optimisticRouteShell===!0,outcome:`pending`,prefetchKind:a.prefetchKind??(a.optimisticRouteShell===!0?`loading-shell`:`navigation`),searchAgnosticShell:a.searchAgnosticShell===!0,timestamp:l};yu(d,i?.onInvalidate),d.fetchPromise=t,d.pending=t.then(async e=>{if(e.ok){let t=await Ou(e);if(s.get(o)!==d)return;let n=$l(d);if(d.snapshot=t,d.size=t.buffer.byteLength,ru(s,d.size-n),d.expiresAt=Gl(d.timestamp,d.snapshot,a.fallbackTtlMs??Ml,a.honorDynamicStaleTime!==!1&&a.searchAgnosticShell!==!0),a.prepareSnapshot)try{let e=await a.prepareSnapshot(t);if(s.get(o)!==d)return;d.preparedElements=e}catch{}Mu(s,c,o,d),au()}else bl(e),Y(s,c,o,d,!1)}).catch(()=>{Y(s,c,o,d,!1)}).finally(()=>{s.get(o)===d&&(d.pending=void 0,d.fetchPromise=void 0,d.snapshot&&(d.outcome=`cache-seeded`,vu(o,d)))}),s.set(o,d),au()}function Mu(e,t,n,r){if(r.cacheForNavigation===!1)return;let i=r.snapshot?.renderedPathAndSearch;if(!i)return;let a=Yl(n),o=B.encodeCacheKey(i,a.interceptionContext);if(o===n)return;let s=e.get(o);s&&s!==r&&Y(e,t,o,s,!1),r.cacheKeys??=new Set([n]),r.cacheKeys.add(o),e.set(o,r),t.add(o)}function Nu(e,t=null,n=null,r){let i=Zl(e,t,n,r?.additionalRscUrls);if(!i)return null;let{cacheKey:a,entry:o}=i;return o.pending||o.outcome!==`cache-seeded`||o.cacheForNavigation===!1||!o.snapshot?null:Kl(o)<=Date.now()?(Y(q(),J(),a,o,!0),null):o.expiresAt!==void 0||o.snapshot.expiresAt!==void 0?{...o.snapshot,expiresAt:Kl(o)}:o.snapshot}function Pu(e,t=null,n=null,r){let i=q(),a=B.encodeCacheKey(e,t),o=i.get(a);o&&o.cacheForNavigation!==!1&&!Xl(o,n)&&Y(i,J(),a,o,!1);let s=Zl(e,t,n,r?.additionalRscUrls);if(!s)return null;let{cacheKey:c,entry:l}=s;return Fu(c,l,n)}function Fu(e,t,n,r=!1){let i=q();if(t.pending||t.outcome!==`cache-seeded`||t.cacheForNavigation===!1)return null;if(t.snapshot){if(!Xl(t,n))return null;if(!r&&Kl(t)<=Date.now())return Y(i,J(),e,t,!0),null;mu(t),Y(i,J(),e,t,!1);let a=t.snapshot;return t.expiresAt!==void 0||t.snapshot.expiresAt!==void 0?{...a,expiresAt:Kl(t),...t.preparedElements?{preparedElements:t.preparedElements}:{}}:t.preparedElements?{...a,preparedElements:t.preparedElements}:a}return null}async function Iu(e,t=null,n=null,r){let i=q(),a=Zl(e,t,n,r?.additionalRscUrls);if(!a)return null;let{cacheKey:o,entry:s}=a;if(r?.shouldConsume?.()===!1)return null;let c=s.pending!==void 0;return s.pending!==void 0&&(Cl(s.fetchPromise),await s.pending.catch(()=>{}),i.get(o)!==s||r?.shouldConsume?.()===!1)?null:Fu(o,s,n,c)}var Lu=Symbol.for(`vinext.clientNavigationState`),Ru=Symbol.for(`vinext.mountedSlotsHeader`);function zu(e){let t=window;t[Ru]=e}function Bu(){return window[Ru]??null}function X(){let e=window;return e[Lu]??={listeners:new Set,cachedSearch:window.location.search,cachedReadonlySearchParams:new ul(window.location.search),cachedPathname:H(window.location.pathname,``),clientParams:{},clientParamsJson:`{}`,pendingClientParams:null,pendingClientParamsJson:null,pendingPathname:null,pendingPathnameNavId:null,originalPushState:window.history.pushState.bind(window.history),originalReplaceState:window.history.replaceState.bind(window.history),patchInstalled:!1,hasPendingNavigationUpdate:!1,suppressUrlNotifyCount:0,navigationSnapshotActiveCount:0},e[Lu]}function Vu(){let e=X();if(e)for(let t of e.listeners)t()}globalThis[Ol]=Vu;function Hu(){let e=X();if(!e)return!1;let t=!1,n=H(window.location.pathname,``);n!==e.cachedPathname&&(e.cachedPathname=n,t=!0);let r=window.location.search;return r!==e.cachedSearch&&(e.cachedSearch=r,e.cachedReadonlySearchParams=new ul(r),t=!0),t}function Uu(){let e=X();e&&e.navigationSnapshotActiveCount++}var Wu=Symbol.for(`vinext.clientNavigationRenderContext`);function Gu(){if(typeof l.createContext!=`function`)return null;let e=globalThis;return e[Wu]||(e[Wu]=l.createContext(null)),e[Wu]??null}function Ku(e,t){let n=window.location.origin,r=new URL(e,n);return{pathname:H(r.pathname,``),searchParams:new ul(r.search),params:t}}function qu(e){let t=e.searchParams.toString();return t===``?e.pathname:`${e.pathname}?${t}`}var Ju=`{}`;function Yu(e){let t=X();if(!t){let t=JSON.stringify(e);t!==Ju&&(Ju=t);return}let n=JSON.stringify(e);n!==t.clientParamsJson&&(t.clientParams=e,t.clientParamsJson=n,t.pendingClientParams=null,t.pendingClientParamsJson=null,Vu())}function Xu(e){let t=X();if(!t)return;let n=JSON.stringify(e);n!==t.clientParamsJson&&n!==t.pendingClientParamsJson&&(t.pendingClientParams=e,t.pendingClientParamsJson=n,t.hasPendingNavigationUpdate=!0)}function Zu(e,t){let n=X();n&&(n.pendingPathname=H(e,``),n.pendingPathnameNavId=t)}function Qu(e){let t=X();t&&(t.pendingPathnameNavId===null||t.pendingPathnameNavId===e)&&(t.pendingPathname=null,t.pendingPathnameNavId=null)}function $u(e){let t=X();if(!t)return e();t.suppressUrlNotifyCount+=1;try{return e()}finally{--t.suppressUrlNotifyCount}}function ed(e,t){let n=X();if(!n)return;(t?.releaseSnapshot??e!==void 0)&&n.navigationSnapshotActiveCount>0&&--n.navigationSnapshotActiveCount;let r=Hu(),i=!1;n.pendingClientParams!==null&&n.pendingClientParamsJson!==null&&(n.clientParams=n.pendingClientParams,n.clientParamsJson=n.pendingClientParamsJson,n.pendingClientParams=null,n.pendingClientParamsJson=null,i=!0),(n.pendingPathnameNavId===null||e!==void 0&&n.pendingPathnameNavId===e)&&(n.pendingPathname=null,n.pendingPathnameNavId=null);let a=r||n.hasPendingNavigationUpdate;n.hasPendingNavigationUpdate=!1,(r||i)&&yn(),a&&Vu()}function td(e,t,n){$u(()=>{X()?.originalPushState.call(window.history,e,t,n)})}function nd(e,t,n){$u(()=>{X()?.originalReplaceState.call(window.history,e,t,n)})}function rd(){nd({...window.history.state??{},__vinext_scrollX:window.scrollX,__vinext_scrollY:window.scrollY},``)}function id(e,t,n){let r=D()?.functions.commitHashNavigation;if(r){r(e,t,n);return}let i=La(window.history.state);t===`replace`?nd(i,``,e):td(i,``,e)}function ad(e){if(!(typeof document>`u`)){if(e.hash!==null){en(e.hash,()=>jr(e));return}e.targetHoistedInHead||(document.documentElement.scrollTop=0)}}function od(e){queueMicrotask(()=>{let t=Ar();if(t===null||t.id!==e.id)return;let n=Pr(e);n&&ad(n)})}function sd(e){if(e&&typeof e==`object`&&`__vinext_scrollY`in e){let{__vinext_scrollX:t,__vinext_scrollY:n}=e;Promise.resolve().then(()=>{let e=window.__VINEXT_RSC_PENDING__??null;e?e.then(()=>tn(t,n)):tn(t,n)})}}function cd(e,t){t===`replace`?window.location.replace(e):window.location.assign(e)}function ld(){D()?.functions.notifyLinkNavigationStart?.()}function ud(e){let t=lu(e);t!==null&&!rl(e,window.location.href,``)&&cu(t),ld()}function dd(){let e=lu(window.location.href);e!==null&&cu(e),ld()}async function fd(e,t,n,r=!1,i=`transition`){ud(e);let a=e;if(zc(e)){let n=$c(e,``);if(n==null){ba(e,t);let n=D()?.functions.navigateExternal;if(n){await n(e,t);return}cd(e,t),await new Promise(()=>{});return}a=n}let o=Dl(a);if(o===`pages`||o===`document`){let e=nl(a,window.location.href,``);ba(e,t),t===`push`&&rd(),cd(e,t),await new Promise(()=>{});return}let s=nl(a,window.location.href,``);ba(s,t),t===`push`&&rd();let c=Rc.classifyEarlyNavigationIntent({basePath:``,currentHref:window.location.href,mode:t,scroll:n,targetHref:s});if(c.kind===`sameDocumentScroll`){kr(),id(s,c.mode,c.scroll),Rn(s),ed(),c.scroll&&$t(c.hash);return}if(ts(typeof document>`u`?void 0:document)){let e=D()?.functions.navigateExternal;if(e){await e(s,t);return}cd(s,t),await new Promise(()=>{});return}let l=s.indexOf(`#`),u=l===-1?``:s.slice(l),d=n?Or(u||null):null;n||kr();let f=D()?.functions.navigate;try{f?await f(s,0,`navigate`,t,void 0,r,void 0,d,i):(t===`replace`?nd(null,``,s):td(null,``,s),ed())}catch(e){throw d&&Pr(d),e}d&&od(d)}var pd=0;function md(){pd+=1;let e=!1;return()=>{e||(e=!0,pd=Math.max(0,pd-1))}}function hd(){return pd>0}function gd(e){queueMicrotask(e)}var _d={bfcacheId:`0`,push(e,t){Ss(e),ud(e);let n=md();try{l.startTransition(()=>{fd(e,`push`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}gd(n)},replace(e,t){Ss(e),ud(e);let n=md();try{l.startTransition(()=>{fd(e,`replace`,t?.scroll!==!1,!0)})}catch(e){throw n(),e}gd(n)},back(){window.history.back()},forward(){window.history.forward()},refresh(){if(D()?.functions.clearNavigationCaches?.(),hd())return;let e=D()?.functions.navigate;e&&l.startTransition(()=>{e(window.location.href,0,`refresh`,void 0,void 0,!0)})},prefetch(e,t){if(Ss(e),cl(window.navigator?.userAgent??``))return;try{new URL(el(e,``),window.location.href)}catch{throw Error(`Cannot prefetch '${e}' because it cannot be converted to a URL.`)}let n=zc(e)?$c(e,``):e;if(n==null)return;let r=lu(n);if(r===null)return;let i=Fl(r),a=Bu(),o=Ll({fetchPriority:`low`,interceptionContext:i,mountedSlotsHeader:a||null}),s=su(r);(async()=>{let e=Dl(r);if(e===`pages`||e===`document`)return;let n=t?.kind===`full`?`full`:`auto`,{resolveAutoAppRoutePrefetch:c,resolveFullAppRoutePrefetch:l}=await K(async()=>{let{resolveAutoAppRoutePrefetch:e,resolveFullAppRoutePrefetch:t}=await import(`./app-route-prefetch-policy-BGWIu9wx.js`);return{resolveAutoAppRoutePrefetch:e,resolveFullAppRoutePrefetch:t}},[]),u=n===`full`?l():c(r),d=u.shouldPrefetch&&u.cacheForNavigation;d&&n===`full`&&o.delete(de),d&&n===`auto`&&(o.set(de,`1`),o.set(fe,`1`));let[f,...p]=await Promise.all([ga(r,o)]);if(s.cancelled)return;let m=B.encodeCacheKey(f,i),h=J();if(d){if(gu(f,i),Ql(f,i,a,{additionalRscUrls:p,onInvalidate:t?.onInvalidate}))return}else if(h.has(m)){xu(m,t?.onInvalidate);return}h.add(m),ju(f,xl(e=>fetch(f,{headers:o,credentials:`include`,priority:`low`,signal:e}),`low`),i,a,t,d?{cacheForNavigation:!0,fallbackTtlMs:u.fallbackTtl===`dynamic`?jl:Ml,honorDynamicStaleTime:u.honorDynamicStaleTime,optimisticRouteShell:!1,prefetchKind:`navigation`,prepareSnapshot:Au}:{cacheForNavigation:!1,optimisticRouteShell:!0,prefetchKind:`navigation`})})().catch(e=>{console.error(`[vinext] RSC prefetch setup error:`,e)}).finally(()=>{ou.delete(s)})}};function vd(e){return!e||e===`0`?Ba:e}function yd(){let e=pn(),t=fn();if(!e||!t||typeof l.useContext!=`function`)return vd(null);try{let n=l.useContext(e),r=l.useContext(t);return vd(n===null?null:r?.[n])}catch{return vd(null)}}var bd=_d;function xd(){if(!Jt||typeof l.useContext!=`function`||typeof l.useMemo!=`function`)throw Error(`invariant expected app router to be mounted`);let e=l.useContext(Jt);if(e===null)throw Error(`invariant expected app router to be mounted`);let t=yd();return l.useMemo(()=>({...e,bfcacheId:t}),[e,t])}{let e=X();e&&!e.patchInstalled&&(e.patchInstalled=!0,window.addEventListener(`popstate`,()=>{dd()}),window.addEventListener(`popstate`,e=>{N()||(ed(),sd(e.state))}),window.history.pushState=function(t,n,r){e.originalPushState.call(window.history,ja(t,window.history.state),n,r),e.suppressUrlNotifyCount===0&&(ld(),ed())},window.history.replaceState=function(t,n,r){e.originalReplaceState.call(window.history,ja(t,window.history.state),n,r),e.suppressUrlNotifyCount===0&&(ld(),ed())})}var Sd=new TextEncoder;function Cd(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e{let e=o;o=void 0,e?.()},c=()=>{a||(a=!0,s(),t.close())},l=()=>{typeof queueMicrotask==`function`?queueMicrotask(c):Promise.resolve().then(c)},u=()=>{a||(a=!0,s(),t.error(Ed()))};e=()=>{a||(a=!0,s())};let d=D()===null?null:j(),f=d?.rsc??(n.__VINEXT_RSC_CHUNKS__??=[]);if(f.push=function(...e){let r=Array.prototype.push.apply(this,e);if(a)return r;for(let n of e)t.enqueue(wd(n));return(d?.done||n.__VINEXT_RSC_DONE__)&&c(),r},d){let e=!!d.done;Object.defineProperty(d,`done`,{configurable:!0,enumerable:!0,get(){return e},set(t){e=!!t,e&&l()}})}else{let e=!!n.__VINEXT_RSC_DONE__;Object.defineProperty(n,`__VINEXT_RSC_DONE__`,{configurable:!0,enumerable:!0,get(){return e},set(t){e=!!t,e&&l()}})}if(typeof document<`u`)if(document.readyState===`loading`)document.addEventListener(`DOMContentLoaded`,u),o=()=>document.removeEventListener(`DOMContentLoaded`,u);else{let e=setTimeout(u);o=()=>clearTimeout(e)}},cancel(){e?.()}})}var Ad={origin:`committed-cache`},jd={origin:`fresh`},Md={origin:`visited-cache`};function Nd(e){return{id:e.id,lane:e.lane,...e.navigationCommitKind===void 0?{}:{navigationCommitKind:e.navigationCommitKind},...e.navigationId===void 0?{}:{navigationId:e.navigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion,state:`pending`}}function Pd(e){return e.skippedLayoutIds.length===0}function Fd(e){return e.cacheEntryReuseProof!==void 0&&Pd(e)}function Id(e){switch(e.origin){case`committed-cache`:case`fresh`:return!1;case`visited-cache`:return!0;default:throw Error(`[vinext] Unknown App Router payload origin: `+String(e))}}function Ld(e){return me(Uo(e))}function Rd(e){if(e.interception!==null)return e.routeId;let t=B.parseElementKey(e.routeId);return t?.kind!==`route`||t.interceptionContext===null?e.routeId:B.encodeRouteId(t.path,null)}function zd(e,t=``){return e===null?null:H(new URL(e,`http://localhost`).pathname,t)}function Bd(e){let t=Vd(e),n=Wd(e.pending),r=Gd({pending:e.pending,routeManifest:e.routeManifest??null,startedNavigationId:e.startedNavigationId,targetSnapshot:n});if(e.pending.action.operation.navigationCommitKind===`detached`&&e.currentState.activeOperation?.navigationId===e.startedNavigationId&&e.currentState.activeOperation.navigationCommitKind===`authoritative`)return{disposition:`skip`,preserveElementIds:[],trace:G(W.staleOperation,t)};let i=e.currentState.activeOperation?.navigationId===e.startedNavigationId&&e.currentState.activeOperation.navigationCommitKind===`detached`&&e.pending.action.operation.navigationCommitKind===`authoritative`?e.pending.action.operation.startedVisibleCommitVersion:e.currentState.visibleCommitVersion,a=Ls(r,{activeNavigationId:e.activeNavigationId,visibleCommitVersion:i});if(!a.authorized)return{disposition:`skip`,preserveElementIds:[],trace:G(W.staleOperation,t)};let o=Jd(qd({currentState:e.currentState,pending:e.pending,routeManifest:e.routeManifest??null,targetHref:e.targetHref,targetSnapshot:n,token:a.token,traceFields:t}));return Yd({currentState:e.currentState,decision:o,pending:e.pending})}function Vd(e){return{...js({activeNavigationId:e.activeNavigationId,currentRootLayoutTreePath:e.currentState.rootLayoutTreePath,currentVisibleCommitVersion:e.currentState.visibleCommitVersion,nextRootLayoutTreePath:e.pending.rootLayoutTreePath,startedNavigationId:e.startedNavigationId,startedVisibleCommitVersion:e.pending.action.operation.startedVisibleCommitVersion}),...e.targetHref===void 0?{}:{targetHref:e.targetHref}}}function Hd(e){let t=[];for(let n of zt(e)){let e=B.parseElementKey(n);e?.kind===`slot`&&t.push({ownerLayoutId:B.encodeLayoutId(e.treePath),slotId:n})}return t}function Ud(e){let t=qu(e.navigationSnapshot),n=e.interception?.targetMatchedUrl??Ld(e.navigationSnapshot.pathname);return{displayUrl:t,interception:e.interception,interceptionContext:e.interceptionContext,layoutIds:e.layoutIds,matchedUrl:n,mountedParallelSlots:Hd(e.elements),rootBoundaryId:e.rootLayoutTreePath,routeId:Rd({interception:e.interception,routeId:e.routeId}),slotBindings:e.slotBindings}}function Wd(e){let t=qu(e.action.navigationSnapshot),n=e.action.interception?.targetMatchedUrl??Ld(e.action.navigationSnapshot.pathname);return{displayUrl:t,interception:e.action.interception,interceptionContext:e.action.interceptionContext,layoutIds:e.action.layoutIds,matchedUrl:n,mountedParallelSlots:Hd(e.action.elements),rootBoundaryId:e.rootLayoutTreePath,routeId:Rd({interception:e.action.interception,routeId:e.routeId}),slotBindings:e.action.slotBindings}}function Gd(e){return{baseVisibleCommitVersion:e.pending.action.operation.startedVisibleCommitVersion,deploymentVersion:null,graphVersion:e.routeManifest?.graphVersion??null,lane:e.pending.action.operation.lane,navigationId:e.startedNavigationId,operationId:e.pending.action.operation.id,targetSnapshotFingerprint:Kd(e.targetSnapshot)}}function Kd(e){return`${e.routeId}|root:${e.rootBoundaryId??`unknown`}`}function qd(e){let t=e.pending.cacheEntryReuseProof;return Rc.plan({routeManifest:e.routeManifest,state:{nextOperationToken:e.token,traceFields:e.traceFields,visibleCommitVersion:e.currentState.visibleCommitVersion,visibleSnapshot:Ud(e.currentState)},event:{kind:`flightResponseArrived`,result:{...t?{cacheEntryReuseProof:t}:{},...e.pending.restoredHistorySnapshot?{restoredHistorySnapshot:!0}:{},href:e.targetHref??e.targetSnapshot.displayUrl,targetSnapshot:e.targetSnapshot},token:e.token}})}function Jd(e){switch(e.kind){case`proposeCommit`:return{disposition:`dispatch`,preserveAbsentSlots:e.proposal.preserveAbsentSlots,preserveElementIds:e.proposal.preserveElementIds,preservePreviousSlotIds:e.proposal.preservePreviousSlotIds,trace:e.trace};case`hardNavigate`:return{disposition:`hard-navigate`,preserveElementIds:[],trace:e.trace};case`noCommit`:return{disposition:`skip`,preserveElementIds:[],trace:e.trace};case`requestWork`:throw Error(`[vinext] Root-boundary commit planning returned requestWork (${e.work.kind}); flightResponseArrived should never request work`);default:throw Error(`[vinext] Unknown navigation decision: `+String(e))}}function Yd(e){if(e.decision.disposition!==`dispatch`||e.pending.skippedLayoutIds.length===0)return e.decision;let t=new Set(e.currentState.layoutIds),n=new Set(e.pending.action.layoutIds),r=[...e.decision.preserveElementIds],i=new Set(r),a=[];for(let o of e.pending.skippedLayoutIds)i.has(o)||B.parseElementKey(o)?.kind===`layout`&&(!t.has(o)||!n.has(o)||Object.hasOwn(e.currentState.elements,o)&&(r.push(o),i.add(o),a.push(o)));if(a.length===0)return e.decision;let o=Xd({currentSlotBindings:e.currentState.slotBindings,preservePreviousSlotIds:e.decision.preservePreviousSlotIds,skippedLayoutIds:a,targetSlotBindings:e.pending.action.slotBindings});return{...e.decision,preserveElementIds:r,preservePreviousSlotIds:o}}function Xd(e){let t=wc({currentSlotBindings:e.currentSlotBindings,preservedLayoutIds:e.skippedLayoutIds,targetSlotBindings:e.targetSlotBindings});if(t.length===0)return e.preservePreviousSlotIds;let n=[...e.preservePreviousSlotIds],r=new Set(n);for(let e of t)r.has(e)||(n.push(e),r.add(e));return n}function Zd(e){let t=e.nextElements,n=B.readMetadata(t),r=n.cacheEntryReuseProof??(Id(e.payloadOrigin)?xo(null):void 0),i=e.previousNextUrl===void 0?e.currentState.previousNextUrl:e.previousNextUrl,a=n.interception===null?null:i;return{action:{bfcacheIds:Ja({current:e.currentState.bfcacheIds,currentElements:e.currentState.elements,elements:t,restored:e.restoredBfcacheIds,reuseCurrent:e.reuseCurrentBfcacheIds}),...r?{cacheEntryReuseProof:r}:{},elements:t,interception:n.interception,interceptionContext:n.interceptionContext,layoutIds:n.layoutIds,layoutFlags:n.layoutFlags,slotBindings:n.slotBindings,navigationSnapshot:e.navigationSnapshot,operation:Nd({id:e.renderId,lane:e.operationLane,navigationCommitKind:e.navigationCommitKind,navigationId:e.navigationId,startedVisibleCommitVersion:e.currentState.visibleCommitVersion}),previousNextUrl:a,renderId:e.renderId,rootLayoutTreePath:n.rootLayoutTreePath,reuseCurrentBfcacheIds:e.reuseCurrentBfcacheIds??!0,routeId:n.routeId,skippedLayoutIds:n.skippedLayoutIds,type:e.type},...r?{cacheEntryReuseProof:r}:{},interception:n.interception,interceptionContext:n.interceptionContext,previousNextUrl:a,rootLayoutTreePath:n.rootLayoutTreePath,routeId:n.routeId,skippedLayoutIds:n.skippedLayoutIds}}async function Qd(e){return Zd({...e,nextElements:await e.nextElements})}var $d=Symbol(`ApprovedVisibleCommit`);function ef(e,t){return tf(t),of(e,t)}function tf(e){if(e[$d]!==!0)throw Error(`[vinext] Visible router state mutation requires ApprovedVisibleCommit`)}function nf(e,t){return{id:e.id,lane:e.lane,...e.navigationCommitKind===void 0?{}:{navigationCommitKind:e.navigationCommitKind},...e.navigationId===void 0?{}:{navigationId:e.navigationId},startedVisibleCommitVersion:e.startedVisibleCommitVersion,state:`committed`,visibleCommitVersion:t}}function rf(e,t,n){let r=e.visibleCommitVersion+1;return{...t,activeOperation:nf(n,r),visibleCommitVersion:r}}function af(e,t,n,r){if(r.length===0)return t;let i=new Set(r),a=new Map;for(let t of e)i.has(t.slotId)&&a.set(t.slotId,t);let o=[],s=new Set;for(let e of t){let t=a.get(e.slotId);o.push(t??e),s.add(e.slotId)}for(let e of r){if(s.has(e))continue;let t=a.get(e);t&&o.push(t)}return Ke(o,{layoutIds:n})}function of(e,t){let{action:n}=t;switch(n.type){case`traverse`:case`navigate`:case`replace`:{let r=n.reuseCurrentBfcacheIds&&n.operation.lane!==`refresh`?t.decision.preserveElementIds.filter(t=>{let r=e.bfcacheIds[t];return r!==void 0&&n.bfcacheIds[t]===r}):[],i=new Set(r),a=n.reuseCurrentBfcacheIds?t.decision.preservePreviousSlotIds.filter(e=>{let t=n.slotBindings.find(t=>t.slotId===e);return t?.ownerLayoutId!==null&&t?.ownerLayoutId!==void 0&&i.has(t.ownerLayoutId)}):[],o=qa({elements:e.elements}),s=a.filter(e=>o[e]!==void 0),c=n.operation.lane===`hmr`?r.filter(e=>a.some(t=>n.slotBindings.find(e=>e.slotId===t)?.ownerLayoutId===e)):[],l=n.operation.lane===`hmr`&&e.routeId===n.routeId&&Object.hasOwn(e.elements,e.routeId)?[e.routeId,...c]:c,u=l.length>1?[...new Set(l)]:l,d=n.operation.lane===`hmr`?u:r,f=Fi(e.elements,n.elements,{clearAbsentSlots:n.type===`traverse`||!n.reuseCurrentBfcacheIds,preserveAbsentSlots:n.reuseCurrentBfcacheIds&&t.decision.preserveAbsentSlots,preserveElementIds:d,preservePreviousSlotIds:a});return rf(e,{bfcacheIds:Ya({elements:f,next:n.bfcacheIds,previous:n.reuseCurrentBfcacheIds?e.bfcacheIds:{},preservedElementIds:a,preservePreviousIds:s}),elements:f,interception:n.interception,interceptionContext:n.interceptionContext,layoutFlags:lf(e.layoutFlags,n.layoutFlags,d),layoutIds:n.layoutIds,navigationSnapshot:n.navigationSnapshot,previousNextUrl:n.previousNextUrl,renderId:n.renderId,rootLayoutTreePath:n.rootLayoutTreePath,routeId:n.routeId,slotBindings:af(e.slotBindings,n.slotBindings,n.layoutIds,a)},n.operation)}default:{let e=n.type;throw Error(`[vinext] Unknown router action: `+String(e))}}}function sf(e){let t=Bd(e);switch(t.disposition){case`skip`:return{disposition:`no-commit`,trace:t.trace};case`hard-navigate`:return{disposition:`hard-navigate`,trace:t.trace};case`dispatch`:return cf(t.trace,t.preserveElementIds,t.preserveAbsentSlots,t.preservePreviousSlotIds);default:throw Error(`[vinext] Unknown navigation commit disposition: `+String(t))}}function cf(e=G(W.commitCurrent),t=[],n=!1,r=[]){return{disposition:`commit`,preserveAbsentSlots:n,preserveElementIds:[...t],preservePreviousSlotIds:[...r],trace:e}}function lf(e,t,n){let r={...t};for(let t of n){if(Object.hasOwn(r,t))continue;let n=e[t];n&&(r[t]=n)}return r}function uf(e){return{[$d]:!0,action:e.pending.action,decision:e.decision,interception:e.pending.interception,interceptionContext:e.pending.interceptionContext,previousNextUrl:e.pending.previousNextUrl,rootLayoutTreePath:e.pending.rootLayoutTreePath,routeId:e.pending.routeId}}function df(e){return{operationLane:e.action.operation.lane,pendingOperationId:e.action.operation.id,startedVisibleCommitVersion:e.action.operation.startedVisibleCommitVersion}}function ff(e,t,n){return Ns(e,t,df(n))}function pf(e,t){switch(e.disposition){case`commit`:return{...e,trace:ff(e.trace,As.visibleCommit,t)};case`hard-navigate`:return{...e,trace:ff(e.trace,As.hardNavigate,t)};case`no-commit`:return{...e,trace:ff(e.trace,As.noCommit,t)};default:throw Error(`[vinext] Unknown commit decision: `+String(e))}}function mf(e){let{currentState:t,pending:n}=e;if(n.action.operation.lane!==`hmr`)throw Error(`[vinext] HMR visible commit approval requires an HMR pending operation`);let r=pf(sf({activeNavigationId:n.action.operation.id,currentState:t,pending:n,routeManifest:e.routeManifest,startedNavigationId:n.action.operation.id,targetHref:e.targetHref}),n);return r.disposition===`commit`?{approvedCommit:uf({decision:r,pending:n}),decision:r}:{approvedCommit:null,decision:r}}function hf(e){let t=pf(sf({activeNavigationId:e.activeNavigationId,currentState:e.currentState,pending:e.pending,routeManifest:e.routeManifest??null,startedNavigationId:e.startedNavigationId,targetHref:e.targetHref}),e.pending);switch(t.disposition){case`commit`:return{approvedCommit:uf({decision:t,pending:e.pending}),decision:t};case`hard-navigate`:case`no-commit`:return{approvedCommit:null,decision:t};default:throw Error(`[vinext] Unknown commit decision: `+String(t))}}async function gf(e){let t=await Qd({currentState:e.currentState,navigationCommitKind:void 0,navigationId:e.startedNavigationId,nextElements:e.nextElements,navigationSnapshot:e.navigationSnapshot,operationLane:e.operationLane,payloadOrigin:e.payloadOrigin,previousNextUrl:e.previousNextUrl,renderId:e.renderId,type:e.type}),n=e.getCurrentStateForApproval?.()??e.currentState,r=hf({activeNavigationId:e.getActiveNavigationId?.()??e.activeNavigationId,currentState:n,pending:t,routeManifest:e.routeManifest??null,startedNavigationId:e.startedNavigationId,targetHref:e.targetHref});return{approvedCommit:r.approvedCommit,decision:r.decision,pending:t,trace:r.decision.trace}}var _f=`__vinext_hard_navigation_target__`;function vf(e){try{return new URL(e,window.location.href).href}catch{return e}}function yf(){try{return window.sessionStorage.getItem(_f)}catch{return null}}function bf(e){try{return window.sessionStorage.setItem(_f,e),window.sessionStorage.getItem(_f)===e}catch{return!1}}function xf(){try{window.sessionStorage.removeItem(_f)}catch{}}function Sf(e,t=`assign`){let n=vf(e),r=vf(window.location.href);return yf()===n&&r===n?(xf(),console.error(`[vinext] Prevented repeated hard navigation to ${n}; leaving the current document in place to avoid a reload loop.`),!1):!bf(n)&&r===n?(console.error(`[vinext] Hard navigation to ${n} requires a reload-loop guard, but sessionStorage is unavailable; leaving the current document in place.`),!1):(t===`replace`?window.location.replace(e):window.location.assign(e),!0)}function Cf(e,t){let n=H(e.pathname,t),r=new URLSearchParams(e.search).toString();return r===``?n:`${n}?${r}`}function wf(e,t,n){try{let r=window.location.href;return Cf(new URL(n,r),e)===qu(t)}catch{return!1}}function Tf(e={}){let t=e.basePath??``,n=e.commitClientNavigationState??ed,r=e.performHardNavigation??Sf,i=e.getRouteManifest??(()=>null),a=e.syncHistoryStatePreviousNextUrl??(()=>{}),o=0,s=0,c=null,u=null,d=0,f=new Map,p=new Map,m=new Map,h=null,g=null,_=null,v=null,y=null,b=!1;function x(){if(!h)throw Error(`[vinext] Browser router state setter is not initialized`);return h}function S(){if(!g)throw Error(`[vinext] Browser router state is not initialized`);return g.current}function C(){return g||b?Promise.resolve():(y||=new Promise(e=>{v=e}),y)}function w(){b=!0;let e=v;v=null,y=null,e?.()}function ee(){return d+=1,s+=1,c=s,u=null,s}function te(){return s}function T(){return o+=1,o}function E(){return g!==null}function D(e){return e===s}function O(){let e=x();_&&!_.settled&&(_.settled=!0,_.resolve(S()));let t,n=new Promise(e=>{t=e});if(!t)throw Error(`[vinext] Failed to initialize browser router promise`);let r={promise:n,resolve:t,settled:!1};return _=r,e(n),r}function k(e){!e||e.settled||(e.settled=!0,e.resolve(S()),_===e&&(_=null))}function A(e,t){k(t),D(e)&&(c=null,u=null,Qu(e))}function j(e,t){t&&m.set(e,t)}function M(e){for(let[t,r]of m)t>e||(m.delete(t),t===e?r():n(void 0,{releaseSnapshot:!0}))}function N(e,t){for(let[n,r]of f){if(n>e)continue;f.delete(n);let i=t&&n===e;i&&r.committedState!==null&&r.onCommittedState?.(r.committedState),r.resolve(i)}}function ne(e){for(let[t,n]of p)t>e||(p.delete(t),Rn(n))}async function P(t,n){let i=++d,a=u===`navigation`;if(!E())return;let o=await Qd({currentState:S(),nextElements:t,navigationSnapshot:n,operationLane:`hmr`,payloadOrigin:jd,renderId:T(),type:`replace`});if(i!==d||a||!E())return;let s=mf({currentState:S(),pending:o,routeManifest:e.getRouteManifest?.()??null,targetHref:qu(n)});s.approvedCommit?I(s.approvedCommit):s.decision.disposition===`hard-navigate`&&r(qu(n))}function F({renderId:e,children:t}){return(0,l.useInsertionEffect)(()=>{ne(e)},[e]),(0,l.useLayoutEffect)(()=>(M(e),N(e,!0),()=>{N(e,!1)}),[e]),t}function re(e,t,n,r){let i=x(),a=f.get(e),o=e=>(a&&(a.committedState=e),e);if(n){if(n.settled)return;let e=o(ef(S(),t));n.settled=!0,n.resolve(e),_===n&&(_=null),r===`synchronous`&&(0,Ir.flushSync)(()=>{i(e)});return}if(r===`synchronous`){(0,Ir.flushSync)(()=>{i(o(ef(S(),t)))});return}(0,l.startTransition)(()=>{i(o(ef(S(),t)))})}function I(e){x()(ef(S(),e))}function ie(e){let t={id:e.renderId,lane:`traverse`,startedVisibleCommitVersion:e.currentState.visibleCommitVersion,state:`pending`};return{action:{bfcacheIds:e.restoredState.bfcacheIds,elements:e.restoredState.elements,interception:e.restoredState.interception,interceptionContext:e.restoredState.interceptionContext,layoutFlags:e.restoredState.layoutFlags,layoutIds:e.restoredState.layoutIds,navigationSnapshot:e.restoredState.navigationSnapshot,operation:t,previousNextUrl:e.restoredState.previousNextUrl,renderId:e.renderId,rootLayoutTreePath:e.restoredState.rootLayoutTreePath,reuseCurrentBfcacheIds:!1,routeId:e.restoredState.routeId,skippedLayoutIds:[],slotBindings:e.restoredState.slotBindings,type:`traverse`},interception:e.restoredState.interception,interceptionContext:e.restoredState.interceptionContext,previousNextUrl:e.restoredState.previousNextUrl,rootLayoutTreePath:e.restoredState.rootLayoutTreePath,routeId:e.restoredState.routeId,restoredHistorySnapshot:!0,skippedLayoutIds:[]}}function L(e){if(!wf(t,e.state.navigationSnapshot,e.targetHref))return!1;let n=S(),r=ie({currentState:n,renderId:T(),restoredState:e.state}),a=hf({activeNavigationId:s,currentState:n,pending:r,routeManifest:i(),startedNavigationId:e.navId,targetHref:e.targetHref});return a.approvedCommit===null?!1:(e.beforeCommit?.(),I(a.approvedCommit),!0)}function ae(e){Za(e?.revalidation??`none`)&&e?.onDiscardedRevalidation?.()}function oe(e){try{let t=new URL(window.location.href),n=new URL(e,t.href);return n.origin===t.origin&&n.pathname===t.pathname&&n.search!==t.search&&n.hash!==``}catch{return!1}}function se(e){return e.actionType===`traverse`||e.historyUpdateMode===void 0||e.scrollIntent?.hash==null?!1:oe(e.targetHref)}async function ce(e){e.navId===c&&(u=e.operationLane);let t=T(),a=Ln(e.targetHref);a&&p.set(t,a);let o,l=new Promise(n=>{o=n,f.set(t,{committedState:null,onCommittedState:e.onCommittedState,resolve:n})}),d=!1;try{let n={currentState:e.navigationInitiationState,navigationCommitKind:e.navigationCommitKind,navigationId:e.navId,navigationSnapshot:e.navigationSnapshot,operationLane:e.operationLane,payloadOrigin:e.payloadOrigin,previousNextUrl:e.previousNextUrl,renderId:t,restoredBfcacheIds:e.restoredBfcacheIds,reuseCurrentBfcacheIds:e.reuseCurrentBfcacheIds,type:e.actionType},c=e.nextElements instanceof Promise?await Qd({...n,nextElements:e.nextElements}):Zd({...n,nextElements:e.nextElements}),l=hf({activeNavigationId:s,currentState:S(),pending:c,routeManifest:i(),startedNavigationId:e.navId,targetHref:e.targetHref});if(l.decision.disposition===`no-commit`)return k(e.pendingRouterState),p.delete(t),a&&Rn(a),f.delete(t),o?.(!1),Pr(e.scrollIntent??null),`no-commit`;if(l.decision.disposition===`hard-navigate`)return k(e.pendingRouterState),p.delete(t),f.delete(t),Pr(e.scrollIntent??null),r(e.targetHref)?`hard-navigate`:(a&&Rn(a),`no-commit`);let u=l.approvedCommit;if(u===null)throw Error(`[vinext] Commit decision did not approve a visible commit`);j(t,e.createNavigationCommitEffect({bfcacheIds:u.action.bfcacheIds,href:e.targetHref,historyUpdateMode:e.historyUpdateMode,navId:e.navId,params:e.params,previousNextUrl:u.previousNextUrl,targetHistoryIndex:e.targetHistoryIndex})),Mr(e.scrollIntent,t),Uu(),d=!0,re(t,u,e.pendingRouterState,se(e)?`synchronous`:e.visibleCommitMode??`transition`)}catch(r){throw p.delete(t),m.delete(t),f.delete(t),d&&n(e.navId),k(e.pendingRouterState),o?.(!1),r}return l.then(e=>e?`committed`:`no-commit`)}async function le(e,t,n,o,c){let u=o??S(),d=c?.startedNavigationId??s,f=c?.targetHref??window.location.href,{approvedCommit:p,decision:m,pending:h,trace:g}=await gf({activeNavigationId:s,currentState:u,getActiveNavigationId:()=>s,getCurrentStateForApproval:S,navigationSnapshot:t,nextElements:e,renderId:T(),operationLane:Xa(c?.revalidation??`none`),payloadOrigin:jd,startedNavigationId:d,routeManifest:i(),targetHref:f,type:`navigate`});if(m.disposition===`hard-navigate`){r(f);return}if(p){let e=hf({activeNavigationId:s,currentState:S(),pending:h,routeManifest:i(),startedNavigationId:d,targetHref:f});if(e.decision.disposition===`hard-navigate`){r(f);return}if(e.approvedCommit){let t=e.approvedCommit;(0,l.startTransition)(()=>{I(t)}),a(t.previousNextUrl,t.action.bfcacheIds)}else ae(c)}else m.disposition===`no-commit`&&ae(c);if(n){if(!n.ok)throw n.data;return n.data}}function ue(e,t){return h=e,g=t,w(),()=>{h===e&&(h=null),g===t&&(g=null,b=!1)}}return{beginNavigation:ee,getActiveNavigationId:te,hasBrowserRouterState:E,getBrowserRouterState:S,isCurrentNavigation:D,performHardNavigation:r,waitForBrowserRouterStateReady:C,attachBrowserRouterState:ue,beginPendingBrowserRouterState:O,finalizeNavigation:A,restoreHistorySnapshotVisibleState:L,renderNavigationPayload:ce,commitSameUrlNavigatePayload:le,hmrReplaceTree:P,drainPrePaintEffects:M,clearCommittedNavigationFailureTargets:ne,NavigationCommitSignal:F}}var Ef=`__VINEXT_RSC_FORM_STATE__`;function Df(e){let t=e.__VINEXT_RSC_FORM_STATE__??null;return delete e[Ef],t}function Of(e){let t={formState:e.formState,...e.onRecoverableError?{onRecoverableError:e.onRecoverableError}:{},onUncaughtError:e.onUncaughtError};return e.onCaughtError?{...t,onCaughtError:e.onCaughtError}:t}function kf(e){let t;if(e.startTransition(()=>{t=e.hydrateRoot(e.container,e.children,e.options)}),t===void 0)throw Error(`[vinext] React.startTransition did not synchronously start hydration`);return t}function Af(e){let t=new URL(e);return`${t.pathname}${t.search}${t.hash}`}function jf(e){if(!e||typeof e!=`object`)return e;let t={};for(let[n,r]of Object.entries(e))n===`__vinext_scrollX`||n===`__vinext_scrollY`||(t[n]=r);return Object.keys(t).length>0?t:null}var Mf=class{#e;#t;#n;#r;#i;#a;#o;#s;constructor(e){this.#t=e.readHistoryState,this.#n=e.readCurrentHref,this.#r=e.pushHistoryState,this.#i=e.replaceHistoryState,this.#a=e.readVisibleNavigationMetadata,this.#e=new Da({initialHistoryState:e.initialHistoryState,maxHistoryStateSnapshots:e.maxHistoryStateSnapshots}),this.#o=Ra(e.initialHistoryState)??0,this.#s=this.#o}get currentHistoryTraversalIndex(){return this.#o}allocateNavigationHistoryTraversalIndex(e){switch(e){case`push`:return this.#s+1;case`replace`:return this.#o;case void 0:return null;default:throw Error(`[vinext] Unknown history update mode: `+String(e))}}commitHistoryTraversalIndex(e){this.#o=e,e!==null&&(this.#s=Math.max(this.#s,e))}commitTraversalIndexFromHistoryState(e){this.commitHistoryTraversalIndex(Ra(e))}resolveTraversalIntent(e){return za({currentHistoryIndex:this.#o,historyState:e})}readCurrentBfcacheVersionHistoryIds(e){return this.#e.readCurrentBfcacheVersionHistoryIds(e)}isCacheInvalidationGuarded(){return this.#e.isCacheInvalidationGuarded()}isCurrentBfcacheVersion(e){return this.#e.isCurrentBfcacheVersion(e)}beginCacheInvalidationGuard(){return this.#e.beginCacheInvalidationGuard()}invalidateRestorableClientState(){this.#e.invalidateClientState()}rememberHistoryStateSnapshot(e){this.#e.rememberHistoryStateSnapshot({historyIndex:this.#o,state:e})}commitHashOnlyNavigation(e,t,n){let r=this.allocateNavigationHistoryTraversalIndex(t),i=this.#t(),a=this.#a(),o=a?a.previousNextUrl:Ma(i),s=a?a.bfcacheIds:this.#e.readCurrentBfcacheVersionHistoryIds(i),c=Aa(this.#c(t,n),{bfcacheIds:s,bfcacheVersion:s===null?void 0:this.#e.currentBfcacheVersion,previousNextUrl:o,traversalIndex:r});t===`replace`?this.#i(c,e):this.#r(c,e),this.commitHistoryTraversalIndex(r)}#c(e,t){if(e!==`replace`)return null;let n=this.#t();return t?jf(n):n}commitNavigationHistory(e){let t=this.#n(),n=new URL(t).origin,r=new URL(e.href,n).href,i=e.historyUpdateMode===`replace`,a=e.targetHistoryIndex===void 0?this.allocateNavigationHistoryTraversalIndex(e.historyUpdateMode):e.targetHistoryIndex,o=Aa(i?this.#t():null,{bfcacheIds:e.bfcacheIds,bfcacheVersion:this.#e.currentBfcacheVersion,previousNextUrl:e.previousNextUrl,traversalIndex:a}),s=!1;e.historyUpdateMode===`replace`&&t!==r?(e.stageClientParams(),this.#i(o,e.href),s=!0,this.commitHistoryTraversalIndex(a)):e.historyUpdateMode===`push`&&t!==r&&(e.stageClientParams(),this.#r(o,e.href),s=!0,this.commitHistoryTraversalIndex(a)),s||(this.syncCurrentHistoryStatePreviousNextUrl(e.previousNextUrl,e.bfcacheIds),e.stageClientParams(),e.targetHistoryIndex!==void 0&&this.commitHistoryTraversalIndex(e.targetHistoryIndex))}syncCurrentHistoryStatePreviousNextUrl(e,t){if(this.#l(this.#t(),e,t))return;let n=Aa(this.#t(),{bfcacheIds:t,bfcacheVersion:t===void 0?void 0:this.#e.currentBfcacheVersion,previousNextUrl:e});this.#i(n),!this.#l(this.#t(),e,t)&&this.#i(n)}#l(e,t,n){return Ma(e)===t&&(n===void 0||Nf(Pa(e),n)&&this.#e.isCurrentBfcacheVersion(e))}writeBootstrapHistoryMetadata(){this.#i(Aa(this.#t(),{previousNextUrl:null,traversalIndex:this.#o}),Af(this.#n()))}writeHydratedHistoryMetadata(e){this.#i(Aa(this.#t(),{bfcacheIds:e.bfcacheIds,bfcacheVersion:this.#e.currentBfcacheVersion,previousNextUrl:e.previousNextUrl,traversalIndex:this.#o}))}restoreHistorySnapshot(e){let t=this.#e.resolveHistoryStateSnapshotRestore(e.historyState);return t.kind===`skip`?!1:e.approveVisibleRestore({state:t.state,beforeCommit:()=>{this.commitHistoryTraversalIndex(t.targetHistoryIndex),e.stageClientParams(t.state.navigationSnapshot.params)}})}};function Nf(e,t){if(e===t)return!0;if(e===null||t===null)return!1;let n=Object.entries(e),r=Object.entries(t);return n.length===r.length?n.every(([e,n])=>t[e]===n):!1}var Pf=30*6e4;function Ff(e){return{createdAt:e.now,...e.elements?{elements:e.elements}:{},expiresAt:Wl(e.now,e.response,e.fallbackTtlMs??3e5),mountedSlotsHeader:e.mountedSlotsHeader??null,params:e.params,response:e.response}}function If(e,t){return t.navigationKind===`refresh`?!1:t.navigationKind===`traverse`?t.now-e.createdAtt.now}function Lf(e){try{let t=new URL(e,`http://vinext.local`);return fa(t),`${t.pathname}${t.search}`}catch{return null}}function Rf(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}function zf(e,t,n){let r=B.encodeCacheKey(t,n),i=e.get(r);if(i)return{cacheKey:r,entry:i};let a=Lf(t);if(a===null)return null;for(let[t,r]of e){let e=Rf(t);if(e.interceptionContext===n&&Lf(e.rscUrl)===a)return{cacheKey:t,entry:r}}return null}function Bf(e,t,n){let r=zf(e,t,n);return r?e.delete(r.cacheKey):!1}function Vf(e){return!!(e&&typeof e==`object`&&`__vinext_scrollY`in e)}function Hf(e,t){let n=e.getActiveNavigationId();e.markScrollRestoreConsumed(n),e.restorePopstateScrollPosition(t,{shouldContinue:()=>e.isCurrentNavigation(n)})}function Uf(e){if(typeof window.requestAnimationFrame==`function`){window.requestAnimationFrame(e);return}queueMicrotask(e)}function Wf(e){return{direction:`unknown`,historyState:e,targetHistoryIndex:Ra(e)}}function Gf(e){return t=>{e.notifyAppRouterTransitionStart(window.location.href);let n=e.getNavigate()?.(window.location.href,0,`traverse`,void 0,void 0,!1,Wf(t.state))??Promise.resolve(),r=e.getActiveNavigationId();e.setPendingNavigation(n);let i=Vf(t.state),a=()=>e.isCurrentNavigation(r)&&!e.shouldSkipScrollRestore(r);i&&Uf(()=>{a()&&e.restorePopstateScrollPosition(t.state,{shouldContinue:a})}),n.finally(()=>{a()&&!i&&e.restorePopstateScrollPosition(t.state),e.getPendingNavigation()===n&&e.setPendingNavigation(null)})}}function Kf(e){if(!u(e.errorBoundary))return!1;let t=e.errorBoundary.props;return u(t)&&t.isImplicitRootErrorBoundary===!0}function qf(e,t){console.error(e),t?.componentStack&&console.error(`The above error occurred in a React component: `+t.componentStack)}function Jf(e){if(typeof globalThis.reportError==`function`){globalThis.reportError(e);return}console.error(e)}function Yf(){return e=>{Jf(e)}}function Xf(e){return(t,n)=>{if(!ar(t)){if(Kf(n)){e(t,n);return}qf(t,n)}}}function Zf(e){Jf(e instanceof Error&&e.cause!==void 0?e.cause:e)}function Qf(){let e=`pending`,t=null,n=null,r=()=>{if(e!==`committed`&&e!==`complete`||t===null)return;let r=t;t=null,n=r()};return{commit(){e===`pending`&&(e=`committed`,r())},complete(){e===`committed`&&(e=`complete`)},fail(){e===`complete`||e===`invalidated`||(e=`invalidated`,t=null,n?.(),n=null)},invalidate(){e!==`invalidated`&&(e=`invalidated`,t=null,n?.(),n=null)},publish(n){e!==`invalidated`&&(t=n,r())}}}function $f(e){return e.navigationKind!==`navigate`||e.bypassNavigationCache?null:(e.peek??Nu)(e.targetPathAndSearch,e.interceptionContext,e.mountedSlotsHeader,{additionalRscUrls:e.additionalRscUrls})}function ep(e,t){if(!e)return null;try{let n=new URL(e,t);return fa(n),`${n.pathname}${n.search}`}catch{return null}}function tp(e,t){try{return new URL(e,t).origin===new URL(t).origin}catch{return!1}}function np(e,t){try{let n=new URL(e,t);if(n.origin===new URL(t).origin)return`${n.pathname}${n.search}`}catch{}return e}function rp(e){let t=ep(e.responseUrl,e.origin);return t!==null&&tp(e.responseUrl,e.origin)&&e.additionalRscUrls.some(n=>ep(n,e.origin)===t)?e.visibleRscUrl:np(e.responseUrl,e.origin)}function ip(e,t){let{expiresAt:n,preparedElements:r,...i}=e;return{expiresAt:n,preparedElements:r,snapshot:{...i,url:t}}}function ap(e,t){return t===void 0?e:{...e,expiresAt:t}}var op=new WeakMap,sp=new Promise(()=>{});function cp(e){return`${e.routeId}\0${e.interceptionContext??``}\0${e.mountedSlotsHeader??``}`}function lp(e){return`${e.cacheKey}\0${e.interceptionContext??``}\0${e.mountedSlotsHeader??``}`}function up(){return{catchAllChild:null,dynamicChild:null,optionalCatchAllChild:null,route:null,staticChildren:new Map}}function dp(e){let t=up();for(let n of e.segmentGraph.routes.values()){let e=t,r=n.patternParts;if(r.length===0){e.route??=n;continue}for(let[t,i]of r.entries()){let a=t===r.length-1;if(i.startsWith(`:`)&&i.endsWith(`+`)){a&&e.catchAllChild===null&&(e.catchAllChild={paramName:i.slice(1,-1),route:n});break}if(i.startsWith(`:`)&&i.endsWith(`*`)){a&&e.optionalCatchAllChild===null&&(e.optionalCatchAllChild={paramName:i.slice(1,-1),route:n});break}if(i.startsWith(`:`)){let t=i.slice(1);e.dynamicChild===null?e.dynamicChild={node:up(),paramName:t}:e.dynamicChild.paramName,e=e.dynamicChild.node,a&&(e.route??=n);continue}let o=e.staticChildren.get(i);o===void 0&&(o=up(),e.staticChildren.set(i,o)),e=o,a&&(e.route??=n)}}return t}function fp(e){let t=op.get(e);if(t)return t;let n=dp(e);return op.set(e,n),n}function pp(e,t,n,r){if(n===t.length)return e.route===null?e.optionalCatchAllChild===null?null:{route:e.optionalCatchAllChild.route,params:Ko(r)}:{route:e.route,params:Ko(r)};let i=t[n],a=e.staticChildren.get(i);if(a!==void 0)return pp(a,t,n+1,r);if(e.dynamicChild!==null){r.push([e.dynamicChild.paramName,i]);let a=pp(e.dynamicChild.node,t,n+1,r);if(a!==null)return a;r.pop()}if(e.catchAllChild!==null){let i=Ko(r);return i[e.catchAllChild.paramName]=t.slice(n),{route:e.catchAllChild.route,params:i}}if(e.optionalCatchAllChild!==null){let i=Ko(r);return i[e.optionalCatchAllChild.paramName]=t.slice(n),{route:e.optionalCatchAllChild.route,params:i}}return null}function mp(e,t){let n;try{n=new URL(e,`https://vinext.local`)}catch{return null}fa(n);let r=H(pa(n.pathname),t);return Wo(r===``?`/`:r)}function hp(e){let t=mp(e.href,e.basePath);if(t===null)return null;let n=pp(fp(e.routeManifest),t,0,[]);return n===null?null:(qo(n.params),n)}function gp(e,t){for(let[n,r]of Object.entries(t))e[n]=r}function _p(e){let t={...e.match.params};for(let n of e.routeManifest.segmentGraph.slotBindings.values()){if(n.routeId!==e.match.route.id||n.state!==`active`)continue;let r=n.slotPatternParts;if(!r)continue;let i=Jo(e.urlParts,r);i&&gp(t,i)}return t}function vp(e,t=0){if(t>100)return!1;if(Array.isArray(e))return e.some(e=>vp(e,t+1));if(!(0,l.isValidElement)(e))return!1;let n=Reflect.get(e,`props`);return e.type===l.Suspense&&u(n)&&Reflect.get(n,`fallback`)!=null?!0:u(n)?vp(Reflect.get(n,`children`),t+1):!1}function yp(e,t){let n=new Set;t.pageId&&Object.hasOwn(e,t.pageId)&&n.add(t.pageId);for(let r of t.slotIds){let t=B.parseElementKey(r);t?.kind===`slot`&&t.name===`children`&&Object.hasOwn(e,r)&&n.add(r)}for(let t of Object.keys(e))B.parseElementKey(t)?.kind===`page`&&n.add(t);return Array.from(n).sort()}function bp(){throw sp}function xp(e){let t=hp({basePath:e.basePath,href:e.href,routeManifest:e.routeManifest});if(t===null||!e.allowLoadingShell&&!t.route.isDynamic||e.interceptionContext!==null)return null;let n=B.readMetadata(e.elements);if(n.interception!==null||n.interceptionContext!==null)return null;let r=e.elements[n.routeId];if(!e.allowLoadingShell&&!vp(r)||e.allowLoadingShell&&e.elements.__prefetchLoadingShell!==`LoadingBoundary`||e.allowLoadingShell&&r==null)return null;let i=yp(e.elements,t.route);return i.length===0?null:{elements:e.elements,mountedSlotsHeader:e.mountedSlotsHeader,pageElementIds:i,routeId:t.route.id}}function Sp(e){let t={...e.elements};for(let n of e.pageElementIds)t[n]=(0,l.createElement)(bp);return t}function Cp(e){if(e.interceptionContext!==null)return null;let t=mp(e.href,e.basePath);if(t===null)return null;let n=hp({basePath:e.basePath,href:e.href,routeManifest:e.routeManifest});if(n===null)return null;let r=e.templates.get(cp({interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeId:n.route.id}));return r===void 0||r.mountedSlotsHeader!==e.mountedSlotsHeader?null:{elements:Sp(r),params:_p({match:n,routeManifest:e.routeManifest,urlParts:t}),template:r}}var wp=/[\t\n\f\r ]+/;function Tp(e,t){return e===null?!1:e.split(wp).some(e=>e.length>0&&e.toLowerCase()===t.toLowerCase())}function Ep(e,t){for(let n of e.split(/\s+/)){if(n===t)return!0;try{let e=new URL(n,window.location.href),r=new URL(t,window.location.href);if(e.href===r.href)return!0}catch{}}return!1}function Dp(e){return Tp(e.getAttribute(`rel`),`stylesheet`)&&e.hasAttribute(`href`)&&(e.hasAttribute(`data-precedence`)||e.hasAttribute(`precedence`))}function Op(){let e=document.head.querySelectorAll(`style[data-vinext-inline-css][data-href]`);if(e.length===0)return;let t=document.head.querySelectorAll(`link[rel][href]`);for(let n of t){if(!Dp(n))continue;let t=n.getAttribute(`href`);if(t)for(let r of e){let e=r.getAttribute(`data-href`);if(e&&Ep(e,t)){n.remove();break}}}}var kp=o();function Ap(e){return e}function jp(e,t){let n=t?.keyFn??((...e)=>e[0]),r=t?.cache??new Map;return Ap(function(...t){let i=n(...t),a=r.get(i);if(a!==void 0)return a;let o=e.apply(this,t);return r.set(i,o),o})}function Mp(e){return e.split(`$$cache=`)[0]}function Np(){globalThis.__vite_rsc_require__=e=>e.startsWith(`$$server:`)?(e=e.slice(9),globalThis.__vite_rsc_server_require__(e)):globalThis.__vite_rsc_client_require__(e)}var Pp=!1;function Fp(e){if(Pp)return;Pp=!0;let t=jp(t=>e.load(Mp(t)));globalThis.__vite_rsc_client_require__=t,Np()}var Ip=n((e=>{var t=i(),n={stream:!0},r=Object.prototype.hasOwnProperty;function a(e,t){if(e){var n=e[t[0]];if(e=n&&n[t[2]])n=e.name;else{if(e=n&&n[`*`],!e)throw Error(`Could not find the module "`+t[0]+`" in the React Server Consumer Manifest. This is probably a bug in the React Server Components bundler.`);n=t[2]}return t.length===4?[e.id,e.chunks,n,1]:[e.id,e.chunks,n]}return t}function o(e,t){var n=``,r=e[t];if(r)n=r.name;else{var i=t.lastIndexOf(`#`);if(i!==-1&&(n=t.slice(i+1),r=e[t.slice(0,i)]),!r)throw Error(`Could not find the module "`+t+`" in the React Server Manifest. This is probably a bug in the React Server Components bundler.`)}return r.async?[r.id,r.chunks,n,1]:[r.id,r.chunks,n]}var s=new Map;function c(e){var t=__vite_rsc_require__(e);return typeof t.then!=`function`||t.status===`fulfilled`?null:(t.then(function(e){t.status=`fulfilled`,t.value=e},function(e){t.status=`rejected`,t.reason=e}),t)}function l(){}function u(e){for(var t=e[1],n=[],r=0;rl||l===35||l===114||l===120?(u=l,l=3,c++):(u=0,l=3);continue;case 2:m=s[c++],m===44?l=4:d=d<<4|(96s.length&&(m=-1)}var h=s.byteOffset+c;if(-1{t.exports=Ip()}))(),1);function Rp(e,t={}){return Lp.createFromReadableStream(e,{callServer:Bp,findSourceMapURL:Vp,...t})}function zp(e,t={}){return Lp.createFromFetch(e,{callServer:Bp,findSourceMapURL:Vp,...t})}function Bp(...e){return globalThis.__viteRscCallServer(...e)}function Vp(e,t){let n=new URL(`/__vite_rsc_findSourceMapURL`,import.meta.url);return n.searchParams.set(`filename`,e),n.searchParams.set(`environmentName`,t),n.toString()}var Hp={"066132fd2803":async()=>{let e=await K(()=>import(`./Icon-D0zGVybZ.js`).then(e=>e.n),__vite__mapDeps([0,1,2]));return{get default(){return e.default}}},"0da8fa39962d":async()=>{let e=await K(()=>Promise.resolve().then(()=>jn),void 0);return{get default(){return e.default}}},"207ef9e382e7":async()=>{let e=await K(()=>Promise.resolve().then(()=>Fr),void 0);return{get AppRouterScrollTarget(){return e.AppRouterScrollTarget}}},"293d30d890d7":async()=>{let e=await K(()=>import(`./participation-panel-6VKvfdmq.js`),__vite__mapDeps([3,1,0,2]));return{get ParticipationPanel(){return e.ParticipationPanel}}},"41fd901a78e0":async()=>{let e=await K(()=>Promise.resolve().then(()=>or),void 0);return{get ErrorBoundary(){return e.ErrorBoundary},get ForbiddenBoundary(){return e.ForbiddenBoundary},get GlobalErrorBoundary(){return e.GlobalErrorBoundary},get NotFoundBoundary(){return e.NotFoundBoundary},get RedirectBoundary(){return e.RedirectBoundary},get SerializedErrorBoundary(){return e.SerializedErrorBoundary},get UnauthorizedBoundary(){return e.UnauthorizedBoundary}}},"497893d3d817":async()=>{let e=await K(()=>import(`./streamed-icons-Cs-m6aYg.js`),__vite__mapDeps([4,1,2]));return{get StreamedIconsInsertion(){return e.StreamedIconsInsertion}}},"9ed4adeb861c":async()=>(await K(()=>Promise.resolve().then(()=>dl),void 0),{}),"9fb86276be8f":async()=>{let e=await K(()=>import(`./image-D53ydRNL.js`),__vite__mapDeps([5,1,2]));return{get default(){return e.default}}},dfb1a1972f71:async()=>{let e=await K(()=>Promise.resolve().then(()=>ti),void 0);return{get BfcacheSegmentBoundary(){return e.BfcacheSegmentBoundary},get Children(){return e.Children},get ParallelSlot(){return e.ParallelSlot},get Slot(){return e.Slot}}},f010aebb4ce9:async()=>{let e=await K(()=>import(`./layout-segment-context-7E9lw61B.js`),__vite__mapDeps([6,1,2]));return{get LayoutSegmentProvider(){return e.LayoutSegmentProvider}}}};Up();function Up(){Fp({load:async e=>{{let t=Hp[e];if(!t)throw Error(`client reference not found '${e}'`);return t()}}})}function Wp(e){return e===`traverse`?`traverse`:`navigate`}function Gp(e){switch(e){case`navigate`:return`navigation`;case`refresh`:return`refresh`;case`traverse`:return`traverse`;default:throw Error(`[vinext] Unknown navigation kind: `+String(e))}}var Kp=50,qp=ta(),Jp=new Map,Yp=new Set,Xp=new Map;function Zp(){return window.__VINEXT_RSC_ROOT__||window.__VINEXT_RSC_BOOTSTRAP_STATE__?!1:(window.__VINEXT_RSC_BOOTSTRAP_STATE__=`starting`,!0)}function Qp(){window.__VINEXT_RSC_BOOTSTRAP_STATE__=`hydrated`}function $p(){return D()?.bootstrap.routeManifest??null}var Z=new Mf({initialHistoryState:window.history.state,maxHistoryStateSnapshots:50,readHistoryState:()=>window.history.state,readCurrentHref:()=>window.location.href,pushHistoryState:(e,t)=>td(e,``,t),replaceHistoryState:(e,t)=>nd(e,``,t),readVisibleNavigationMetadata:()=>{if(!gm())return null;let e=hm();return{bfcacheIds:e.bfcacheIds,previousNextUrl:e.previousNextUrl}}}),Q=Tf({basePath:``,getRouteManifest:$p,syncHistoryStatePreviousNextUrl:(e,t)=>Z.syncCurrentHistoryStatePreviousNextUrl(e,t)}),em={markNavigationSettled(){},markNavigationStart(){},schedule(){}},tm=Q.NavigationCommitSignal,nm=`data-vinext-action-http-fallback`;function rm(e){if(document.head.querySelectorAll(`meta[${nm}="robots"]`).forEach(e=>e.remove()),e!==404)return;let t=document.createElement(`meta`);t.name=`robots`,t.content=`noindex`,t.setAttribute(nm,`robots`),document.head.appendChild(t)}var im=fn();function am(e){if(!e)return null;try{return JSON.parse(decodeURIComponent(e))}catch{return null}}function om(e){return e instanceof Promise}var sm={},$=new Map,cm=0,lm=null,um=new ns,dm=new Promise(()=>{}),fm=Fn,pm=null;function mm(e,t,n){let r=!1;return(0,Ir.flushSync)(()=>{r=Z.restoreHistorySnapshot({historyState:e,stageClientParams:bm,approveVisibleRestore:({state:e,beforeCommit:r})=>Q.restoreHistorySnapshotVisibleState({beforeCommit:()=>{n?.(),r()},navId:t,state:e,targetHref:window.location.href})})}),r?(ed(t,{releaseSnapshot:!1}),!0):!1}function hm(){return Q.getBrowserRouterState()}function gm(){return Q.hasBrowserRouterState()}function _m(){return Q.waitForBrowserRouterStateReady()}function vm(){return Q.beginPendingBrowserRouterState()}function ym(e){sm=e,Yu(e)}function bm(e){sm=e,Xu(e)}function xm(){$.clear()}function Sm(){Su(),Jp.clear(),Yp.clear(),Xp.clear()}function Cm(){cm+=1,xm(),Sm(),Z.invalidateRestorableClientState()}function wm(e){return e.outcome===`cache-seeded`&&e.pending===void 0&&e.snapshot!==void 0}function Tm(e){let t=e.indexOf(`\0`);return t===-1?{interceptionContext:null,rscUrl:e}:{interceptionContext:e.slice(t+1),rscUrl:e.slice(0,t)}}async function Em(e){let t=Tm(e.cacheKey);if(t.interceptionContext!==e.interceptionContext||ql(e.entry)!==e.mountedSlotsHeader||e.interceptionContext!==null)return!1;let n=await Vm(zp(Promise.resolve(ku(e.entry.snapshot)))),r=xp({allowLoadingShell:e.entry.optimisticRouteShell===!0,basePath:``,elements:n,href:e.entry.snapshot.url||t.rscUrl,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeManifest:e.routeManifest});return r===null?!1:(Jp.set(cp({interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeId:r.routeId}),r),!0)}async function Dm(e){if(e.routeManifest===null)return;let t=[...Xp.values()];for(let[n,r]of q()){let i=lp({cacheKey:n,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader});if(Yp.has(i)||Xp.has(i)||!wm(r)||r.prefetchKind===`route-tree`)continue;let a=Em({cacheKey:n,entry:r,interceptionContext:e.interceptionContext,mountedSlotsHeader:e.mountedSlotsHeader,routeManifest:e.routeManifest}).then(e=>{e&&Yp.add(i)}).finally(()=>{Xp.delete(i)});Xp.set(i,a),t.push(a)}t.length!==0&&await Promise.allSettled(t)}function Om(e){let{bfcacheIds:t,href:n,historyUpdateMode:r,navId:i,params:a,previousNextUrl:o,targetHistoryIndex:s}=e;return()=>{if(!Q.isCurrentNavigation(i)){ed(void 0,{releaseSnapshot:!0});return}Z.commitNavigationHistory({bfcacheIds:t,href:n,historyUpdateMode:r,previousNextUrl:o,stageClientParams:()=>bm(a),targetHistoryIndex:s}),Rn(n),ed(i)}}async function km(e){return rm(null),Q.renderNavigationPayload({actionType:e.actionType??`navigate`,createNavigationCommitEffect:Om,historyUpdateMode:e.historyUpdateMode,navigationCommitKind:e.navigationCommitKind,navigationInitiationState:e.navigationInitiationState,navigationSnapshot:e.navigationSnapshot,navId:e.navId,nextElements:e.payload,onCommittedState:e.onCommittedState,operationLane:e.operationLane??`navigation`,params:e.params,payloadOrigin:e.payloadOrigin,pendingRouterState:e.pendingRouterState,previousNextUrl:e.previousNextUrl,restoredBfcacheIds:e.restoredBfcacheIds??null,reuseCurrentBfcacheIds:e.reuseCurrentBfcacheIds??!0,scrollIntent:e.scrollIntent??null,targetHistoryIndex:e.traversalIntent?.targetHistoryIndex,targetHref:e.targetHref,visibleCommitMode:e.visibleCommitMode??`transition`})}function Am(){for(;$.size>=Kp;){let e=$.keys().next().value;if(e===void 0)return;$.delete(e)}}function jm(e,t,n,r){let i=B.encodeCacheKey(e,t),a=zf($,e,t);return a?{cacheKey:a.cacheKey,entry:a.entry,facts:{candidate:`present`,fresh:If(a.entry,{navigationKind:r,now:Date.now()}),mountedSlotsMatch:a.entry.elements!==void 0||a.entry.mountedSlotsHeader===n,navigationKind:r}}:{cacheKey:i,entry:null,facts:{candidate:`missing`,navigationKind:r}}}function Mm(e,t){return e.entry===null?null:t.kind===`reuse`?($.delete(e.cacheKey),$.set(e.cacheKey,e.entry),e.entry):($.delete(e.cacheKey),null)}function Nm(e,t){Bf($,e,t)}function Pm(e,t,n,r,i=jl,a=n.mountedSlotsHeader??null,o,s=!0,c=n){let l=B.encodeCacheKey(e,t);$.delete(l),Am();let u=Ff({fallbackTtlMs:i,elements:o,now:Date.now(),mountedSlotsHeader:a,params:r,response:n});return $.set(l,u),s&&Cu(e,c,t,a,i),()=>{$.get(l)===u&&$.delete(l),s&&wu(e,c,t)}}function Fm(e){return`${window.location.origin}${qu(e)}`}function Im(){let e=B.parseElementKey(hm().routeId);return e?.kind===`route`?e.path:null}function Lm(e,t,n,r){if(n!==void 0)return{interceptionContext:zd(n,``),previousNextUrl:n};switch(e){case`navigate`:{let e=hm().previousNextUrl;if(e!==null)return{interceptionContext:zd(e,``),previousNextUrl:e};let n=Qo({basePath:``,currentPathname:window.location.pathname,routeManifest:$p(),targetPathname:t});if(n!==null)return{interceptionContext:n,previousNextUrl:window.location.pathname+window.location.search};let r=$o({basePath:``,currentMatchedPathname:Im(),currentPathname:window.location.pathname,routeManifest:$p(),targetPathname:t});return r===null?{interceptionContext:null,previousNextUrl:null}:{interceptionContext:r,previousNextUrl:window.location.pathname+window.location.search}}case`traverse`:{let e=Ma(r??window.history.state);return{interceptionContext:zd(e,``),previousNextUrl:e}}case`refresh`:{let e=hm().previousNextUrl;return{interceptionContext:zd(e,``),previousNextUrl:e}}default:throw Error(`[vinext] Unknown navigation kind: `+String(e))}}function Rm(e){return typeof e==`object`&&!!e&&`kind`in e&&e.kind===`mpa-navigation`}function zm(e,t){um.navigate(window,e,t)}function Bm({children:e}){let t=xd();return(0,l.useEffect)(()=>{let e=e=>{let n=`reason`in e?e.reason:e.error;if(!kn(n))return;let r=An(n.digest);r&&(e.preventDefault(),(0,l.startTransition)(()=>{r.type===`push`?t.push(r.url):t.replace(r.url)}))};return window.addEventListener(`error`,e),window.addEventListener(`unhandledrejection`,e),()=>{window.removeEventListener(`error`,e),window.removeEventListener(`unhandledrejection`,e)}},[t]),e??null}function Vm(e){return Promise.resolve(e).then(e=>B.decode(e))}function Hm({hydrationCachePublication:e,initialElements:t,initialNavigationSnapshot:n}){let r=(0,l.use)(t),i=B.readMetadata(r),[a,o]=(0,l.useState)(()=>({activeOperation:null,bfcacheIds:Ka(r),elements:r,interception:i.interception,interceptionContext:i.interceptionContext,layoutIds:i.layoutIds,layoutFlags:i.layoutFlags,navigationSnapshot:n,previousNextUrl:null,renderId:0,rootLayoutTreePath:i.rootLayoutTreePath,routeId:i.routeId,slotBindings:i.slotBindings,visibleCommitVersion:0}));if(Rm(a))throw zm(a.href,a.historyUpdateMode),dm;let s=om(a)?(0,l.use)(a):a,c=(0,l.useRef)(s);c.current=s,(0,l.useLayoutEffect)(()=>{let t=Q.attachBrowserRouterState(e=>{o(e)},c);return A({navigateExternal:(e,t)=>(o({href:e,historyUpdateMode:t,kind:`mpa-navigation`}),new Promise(()=>{}))}),e.commit(),()=>{e.invalidate(),A({navigateExternal:void 0}),t(),zu(null)}},[e,o]),(0,l.useEffect)(()=>{e.complete();let t=performance.now();window.__VINEXT_HYDRATED_AT=t,window.__NEXT_HYDRATED=!0,window.__NEXT_HYDRATED_AT=t,window.__NEXT_HYDRATED_CB?.()},[e]),(0,l.useLayoutEffect)(()=>{Z.rememberHistoryStateSnapshot(s)},[s]),(0,l.useEffect)(()=>{Zt(B.readMetadata(s.elements).sourcePage)},[s.elements]),(0,l.useLayoutEffect)(()=>{let e=Bu(),t=Bt(c.current.elements);if(zu(t),Op(),e===t)return;let n=window.setTimeout(()=>{D()?.functions.pingVisibleLinks?.()},0);return()=>{window.clearTimeout(n)}},[s.elements]),(0,l.useLayoutEffect)(()=>{s.renderId===0&&Z.writeHydratedHistoryMetadata({bfcacheIds:s.bfcacheIds,previousNextUrl:s.previousNextUrl})},[s.bfcacheIds,s.previousNextUrl,s.renderId]);let u=(0,l.createElement)(hr,null,(0,l.createElement)(tm,{renderId:s.renderId},(0,l.createElement)(ri.Provider,{value:s.elements},(0,l.createElement)(Ii,{id:s.routeId})))),d=(0,l.useMemo)(()=>qa({elements:s.elements}),[s.elements]),f=(0,l.createElement)(di.Provider,{value:d},u),p=(0,l.createElement)(Bm,null,im?(0,l.createElement)(im.Provider,{value:s.bfcacheIds},f):f),m=Jt?(0,l.createElement)(Jt.Provider,{value:bd},p):p,h=(0,l.createElement)(vr,{fallback:fm,children:(0,l.createElement)(Yr,{commitId:s.renderId},m)}),g=Gu();return g?(0,l.createElement)(g.Provider,{value:s.navigationSnapshot},h):h}function Um(e,t,n){Cn({pathname:e,searchParams:new URLSearchParams(t),params:n})}function Wm(e,t){let n=t?.shouldContinue??(()=>!0);if(!n())return;if(!(e&&typeof e==`object`&&`__vinext_scrollY`in e)){window.location.hash&&en(window.location.hash);return}let r=Number(e.__vinext_scrollY);tn(`__vinext_scrollX`in e?Number(e.__vinext_scrollX):0,r,{minFrames:1,shouldContinue:n})}function Gm(e){if(!gm())return!1;let t=new URL(e,window.location.origin),n=hm();return Cf(t,``)===qu(n.navigationSnapshot)}var Km=!1,qm=`__vinext_rsc_initial_reload__`;function Jm(){try{return sessionStorage.getItem(qm)}catch{return null}}function Ym(e){try{sessionStorage.setItem(qm,e)}catch{}}function Xm(){try{sessionStorage.removeItem(qm)}catch{}}function Zm(e){let t=window.location.pathname+window.location.search;return Jm()===t?(Xm(),console.error(`[vinext] Initial RSC fetch ${e} after reload; aborting hydration. Server-rendered HTML remains visible; client components will not hydrate.`),null):(Ym(t),Jm()===t?(console.warn(`[vinext] Initial RSC fetch ${e}; reloading once to let the server render the HTML error page`),window.location.reload(),null):(console.error(`[vinext] Initial RSC fetch ${e}; sessionStorage unavailable so the reload-loop guard cannot persist — aborting hydration. Server-rendered HTML remains visible; client components will not hydrate.`),null))}async function Qm(){let e=Td(),t=D()?.bootstrap.rsc;if(t||e.__VINEXT_RSC_CHUNKS__||e.__VINEXT_RSC_DONE__){if(Xm(),xf(),t)return $m(t),t.done?(k({rsc:void 0}),Dd(t.rsc)):kd();let n=e.__VINEXT_RSC_PARAMS__??{};return e.__VINEXT_RSC_PARAMS__&&ym(e.__VINEXT_RSC_PARAMS__),e.__VINEXT_RSC_NAV__&&Um(e.__VINEXT_RSC_NAV__.pathname,e.__VINEXT_RSC_NAV__.searchParams,n),kd()}let n=ma(),r=await fetch(await ga(window.location.pathname+window.location.search,n),{credentials:`include`,headers:n});if(!r.ok)return Zm(`returned ${r.status}`);let i=r.headers.get(`content-type`)??``;if(!i.startsWith(`text/x-component`))return Zm(`returned non-RSC content-type "${i||`(missing)`}"`);if(!r.body)return Zm(`returned empty body`);Xm(),xf();let a=am(r.headers.get(ne)),o=a??{};if(a)try{ym(a)}catch{}return Um(window.location.pathname,window.location.search,o),r.body}function $m(e){let t=e.params??{};e.params&&ym(e.params),e.nav&&Um(e.nav.pathname,e.nav.searchParams,t)}async function eh(){if(!Zp())return;let e=D()?.bootstrap.rsc,t=await Qm();t!==null&&th(t,null,e)}function th(e,t,n){let r=Qf(),i=cm,[a,o]=e.tee(),s=Vm(Rp(a)),c=Ku(window.location.href,sm),u=c.params,d=qu(c),f=new Response(o).arrayBuffer();Promise.all([s,f]).then(async([e,t])=>{if(i!==cm)return;let a=B.readMetadata(e);if(lm={pathAndSearch:d,routeId:a.routeId},!Pd(a))return;let o=Bt(e),s=await ga(d,ma({mountedSlotsHeader:o}));if(i!==cm)return;let c={compatibilityIdHeader:qp,buffer:t,contentType:Yi,...n?.dynamicStaleTimeSeconds===void 0?{}:{dynamicStaleTimeSeconds:n.dynamicStaleTimeSeconds},...n?.staleTimeSeconds===void 0?{}:{serverStaleTime:{kind:`resolved`,seconds:n.staleTimeSeconds}},mountedSlotsHeader:o,paramsHeader:encodeURIComponent(JSON.stringify(u)),renderedPathAndSearch:null,url:s},l=n?.initialCacheKind===`static`?Ml:jl;r.publish(()=>i===cm?Pm(s,a.interceptionContext,c,u,l,o,e,!1):()=>{})}).catch(()=>{}),Z.writeBootstrapHistoryMetadata();let p=Yf(),m=(...e)=>{r.fail(),p(...e)},h=Of({formState:Df(Td()),onCaughtError:(e=>((...t)=>{r.fail(),e(...t)}))(Xf(m)),onRecoverableError:(...e)=>{r.fail(),Zf(...e)},onUncaughtError:m}),g=(0,l.createElement)(Hm,{hydrationCachePublication:r,initialElements:s,initialNavigationSnapshot:c}),_=document.querySelectorAll(`style[data-vinext-error-shell-style]`);if(document.documentElement.id===`__next_error__`){let{formState:e,...t}=h;for(let e of _)e.remove();(0,l.startTransition)(()=>{let e=(0,kp.createRoot)(document,t);e.render(g),window.__VINEXT_RSC_ROOT__=e})}else window.__VINEXT_RSC_ROOT__=kf({children:g,container:document,hydrateRoot:kp.hydrateRoot,options:h,startTransition:l.startTransition});Qp();let v=null;function y(){v?.abort(),v=null}A({clearNavigationCaches:Cm,commitHashNavigation:(e,t,n)=>Z.commitHashOnlyNavigation(e,t,n),getPrefetchRouterState:()=>{if(!Q.hasBrowserRouterState()){if(lm)return lm;let e=D()?.bootstrap.routeManifest??null,t=e?hp({basePath:``,href:window.location.href,routeManifest:e}):null;return t?{pathAndSearch:Cf(new URL(window.location.href),``),routeId:t.route.id}:null}let e=Q.getBrowserRouterState();return{pathAndSearch:qu(e.navigationSnapshot),routeId:e.routeId}},navigate:async function(e,t=0,n=`navigate`,r,i,a=!1,o,s,c=`transition`){y();let l=new AbortController;v=l;let u=null,d=Q.beginNavigation(),f=cm;em.markNavigationStart();let p=e,m=r,h=i,g=t,_=!1,b=n===`traverse`?o??Z.resolveTraversalIntent(window.history.state):null,x=(e,t)=>{Pr(s??null);let n=Q.performHardNavigation(e,t);return n||Rn(e),n},S=n===`traverse`?Z.readCurrentBfcacheVersionHistoryIds(b?.historyState??window.history.state):null,C=n!==`traverse`||!Z.isCacheInvalidationGuarded()&&Z.isCurrentBfcacheVersion(b?.historyState??window.history.state);try{let e=a;if(gm())e&&(u=vm());else{if(await _m(),!Q.isCurrentNavigation(d))return;e&&(u=vm())}let t=hm(),r=Bt(t.elements);for(;;){let e=new URL(p,window.location.origin),i=Lm(n,e.pathname,h,b?.historyState),a=i.interceptionContext,o=i.previousNextUrl;n===`refresh`&&Z.syncCurrentHistoryStatePreviousNextUrl(o,hm().bfcacheIds),Zu(e.pathname,d);let y=n===`navigate`?Rc.classifyEarlyNavigationIntent({basePath:``,currentHref:Fm(t.navigationSnapshot),mode:`push`,scroll:!1,targetHref:e.href}):null,w=y?.kind===`flightNavigation`&&y.bypassNavigationCache,ee=ma({fetchPriority:`auto`,interceptionContext:a,mountedSlotsHeader:r}),te=e.pathname+e.search,T=[],E=$f({additionalRscUrls:T,bypassNavigationCache:w,interceptionContext:a,mountedSlotsHeader:r,navigationKind:n,targetPathAndSearch:te}),D=E?rp({additionalRscUrls:T,origin:window.location.origin,responseUrl:E.url,visibleRscUrl:te}):await ga(te,ee),O=E?T:await Promise.all(T.map(e=>ga(e,ee))),k=w?{cacheKey:B.encodeCacheKey(D,a),entry:null,facts:{candidate:`missing`,navigationKind:n}}:jm(D,a,r,n),A=Mm(k,Rc.classifyVisitedResponseCacheCandidate(k.facts)),j=A===null?{status:`unavailable`}:{status:`available`},M=Rc.classifyNavigationPrefetchProbe({bypassNavigationCache:w,navigationKind:n,visitedResponse:j}),N=n===`navigate`?$p():null,ne=E!==null||M.kind===`probe`&&Ql(D,a,r,{additionalRscUrls:O,notifyInvalidation:!1}),P=Rc.classifyNavigationReuse({bypassNavigationCache:w,navigationKind:n,optimisticRouteShell:N===null?{reason:`routeManifestMissing`,status:`unavailable`}:{status:`available`},prefetch:ne?{status:`available`}:{status:`unavailable`},targetHref:p,visitedResponse:j});if(P.kind===`reuseVisitedResponse`&&A){let e=Rc.classifyRscFetchResult({clientCompatibilityId:qp,compatibilityIdHeader:A.response.compatibilityIdHeader??null,currentHref:p,effectiveHistoryUpdateMode:m??`replace`,hasBody:!0,isRscContentType:!0,origin:window.location.origin,redirectDepth:g,requestPreviousNextUrl:o,responseOk:!0,responseUrl:A.response.url,source:`cached`,streamedRedirectTarget:null});if(e.kind===`hardNavigate`){e.reason===`redirectDepthExhausted`&&console.error(`[vinext] Too many RSC redirects — aborting navigation to prevent infinite loop.`),x(e.url);return}if(e.kind===`followRedirect`){n===`traverse`&&(S=null),p=e.redirect.href,m=e.redirect.historyUpdateMode,h=e.redirect.previousNextUrl,g=e.redirect.redirectDepth;continue}if(!Q.isCurrentNavigation(d))return;let r=A.params,i=Ku(p,r),l=A.elements?Promise.resolve(A.elements):Vm(zp(Promise.resolve(ku(A.response))));if(!Q.isCurrentNavigation(d))return;if(await km({actionType:Wp(n),historyUpdateMode:m,navigationCommitKind:_?`authoritative`:void 0,navigationInitiationState:t,navigationSnapshot:i,navId:d,operationLane:Gp(n),params:r,payload:l,payloadOrigin:A.elements?Ad:Md,pendingRouterState:_?null:u,previousNextUrl:o,restoredBfcacheIds:S,reuseCurrentBfcacheIds:C,scrollIntent:s,targetHref:p,traversalIntent:b,visibleCommitMode:c})===`no-commit`){if(!Q.isCurrentNavigation(d))return;Nm(D,a);continue}return}let F,re,I=null,ie,L,ce=P;if(P.kind===`consumePrefetch`){let e=E?Pu(te,a,r,{additionalRscUrls:T}):await Iu(D,a,r,{additionalRscUrls:O,shouldConsume:()=>Q.isCurrentNavigation(d)});if(!Q.isCurrentNavigation(d))return;if(e){F=ku(e,!1),I=rp({additionalRscUrls:O,origin:window.location.origin,responseUrl:e.url,visibleRscUrl:D});let t=ip(e,I);ie=t.snapshot,L=t.preparedElements,re=t.expiresAt}F||(N=n===`navigate`?$p():null,ce=Rc.classifyNavigationReuse({bypassNavigationCache:w,navigationKind:n,optimisticRouteShell:N===null?{reason:`routeManifestMissing`,status:`unavailable`}:{status:`available`},prefetch:{status:`unavailable`},targetHref:p,visitedResponse:{status:`unavailable`}}))}if(!F&&ce.kind===`attemptOptimisticRouteShell`){if(await Dm({interceptionContext:a,mountedSlotsHeader:r,routeManifest:N}),!Q.isCurrentNavigation(d))return;if(N!==null){let e=Cp({basePath:``,href:p,interceptionContext:a,mountedSlotsHeader:r,routeManifest:N,templates:Jp});if(e!==null){_=!0;let r=Ku(p,e.params);km({actionType:Wp(n),historyUpdateMode:m,navigationCommitKind:`detached`,navigationInitiationState:t,navigationSnapshot:r,navId:d,operationLane:Gp(n),params:e.params,payload:Promise.resolve(e.elements),payloadOrigin:jd,pendingRouterState:null,previousNextUrl:o,restoredBfcacheIds:S,reuseCurrentBfcacheIds:C,scrollIntent:s,targetHref:p,traversalIntent:b,visibleCommitMode:c}).catch(e=>{Q.isCurrentNavigation(d)&&console.error(`[vinext] Optimistic RSC navigation error:`,e)})}}}if(!F){if(n===`navigate`){let e=zo(t);e!==null&&ee.set(ae,e)}F=await fetch(D,{headers:ee,credentials:`include`,priority:`auto`,signal:l.signal})}if(!Q.isCurrentNavigation(d))return;let le=F.headers.get(`content-type`)??``,ue=F.headers.get(oe),de=F.headers.get(se),fe=de===`push`||de===`replace`?de:null;if(ws(F,ue))return;let R=Rc.classifyRscFetchResult({clientCompatibilityId:qp,compatibilityIdHeader:F.headers.get(Ji),currentHref:p,effectiveHistoryUpdateMode:m??`replace`,hasBody:F.body!==null,isRscContentType:le.startsWith(Yi),origin:window.location.origin,redirectDepth:g,requestPreviousNextUrl:o,responseOk:F.ok,responseUrl:I??F.url,source:`live`,streamedRedirectTarget:ue,streamedRedirectType:fe});if(R.kind===`hardNavigate`){R.discardBody&&F.body?.cancel().catch(()=>{}),R.reason===`redirectDepthExhausted`&&console.error(`[vinext] Too many RSC redirects — aborting navigation to prevent infinite loop.`),R.reason===`streamedRedirectLoop`&&console.error(`[vinext] RSC streamed redirect resolved to the current URL — aborting navigation to prevent infinite loop.`),x(R.url,R.hardNavigationMode);return}if(R.kind===`followRedirect`){R.discardBody&&F.body?.cancel().catch(()=>{}),n===`traverse`&&(S=null),p=R.redirect.href,m=R.redirect.historyUpdateMode,h=R.redirect.previousNextUrl,g=R.redirect.redirectDepth;continue}let pe=am(F.headers.get(`X-Vinext-Params`))??{},me=Ku(p,pe),he=F.body;if(!he)return;let[ge,_e]=he.tee(),ve=ms(new Response(ge,{status:F.status,headers:F.headers})),ye=new Response(_e).arrayBuffer();if(ye.catch(()=>{}),!Q.isCurrentNavigation(d))return;L&&ve.body?.cancel().catch(()=>{});let be=L||Vm(zp(Promise.resolve(ve)));if(!Q.isCurrentNavigation(d))return;let xe=null;if(await km({actionType:Wp(n),historyUpdateMode:m,navigationCommitKind:_?`authoritative`:void 0,navigationInitiationState:t,navigationSnapshot:me,navId:d,onCommittedState:e=>{xe=e,v===l&&(v=null)},operationLane:Gp(n),params:pe,payload:be,payloadOrigin:jd,pendingRouterState:_?null:u,previousNextUrl:o,restoredBfcacheIds:S,reuseCurrentBfcacheIds:C,scrollIntent:s,targetHref:p,traversalIntent:b,visibleCommitMode:L?`synchronous`:c})!==`committed`)return;xe??=hm();try{let e=await be;if(f!==cm)return;let t=B.readMetadata(e);if(f!==cm)return;let n=ie??Tu(F,await ye,I),i=n.completedDynamicStaleTimeSeconds===void 0&&Fd(t),{completedDynamicStaleTimeSeconds:o,dynamicStaleTimeSeconds:s,...c}=n,l={...i?c:{...n,...n.dynamicStaleTimeSeconds===void 0&&t.dynamicStaleTimeSeconds!==void 0?{dynamicStaleTimeSeconds:t.dynamicStaleTimeSeconds}:{}},mountedSlotsHeader:Bt(e)},u=ap(l,re),d=Vt(a,t.interceptionContext);if(i){if(f!==cm)return;Pm(D,d,l,pe,Ml,r,void 0,!0,u)}else{let e=xe,t={...e.elements,[B.keys.layoutFlags]:e.layoutFlags,[B.keys.layoutIds]:e.layoutIds,[B.keys.skippedLayoutIds]:[],[B.keys.slotBindings]:e.slotBindings};if(f!==cm)return;Pm(D,d,l,pe,jl,r,t,!0,u)}}catch{}return}}catch(e){if(!Q.isCurrentNavigation(d))return;Km||console.error(`[vinext] RSC navigation error:`,e),x(Rc.classifyRscNavigationError({currentHref:p}).url)}finally{v===l&&(v=null),Q.finalizeNavigation(d,u),em.markNavigationSettled()}},preparePrefetchResponse:e=>Vm(zp(Promise.resolve(e)))});let b=Gf({getActiveNavigationId:Q.getActiveNavigationId.bind(Q),getPendingNavigation:()=>window.__VINEXT_RSC_PENDING__,getNavigate:()=>D()?.functions.navigate,isCurrentNavigation:Q.isCurrentNavigation.bind(Q),notifyAppRouterTransitionStart:e=>{ba(e,`traverse`)},restorePopstateScrollPosition:Wm,setPendingNavigation:e=>{window.__VINEXT_RSC_PENDING__=e},shouldSkipScrollRestore:e=>pm===e});window.addEventListener(`popstate`,e=>{let t=window.location.href;if(Gm(t)){ba(t,`traverse`),Z.commitTraversalIndexFromHistoryState(e.state),Wm(e.state);return}let n=Q.beginNavigation();if(mm(e.state,n,()=>{y(),ba(t,`traverse`)})){window.__VINEXT_RSC_PENDING__=null,Hf({getActiveNavigationId:()=>Q.getActiveNavigationId(),isCurrentNavigation:e=>Q.isCurrentNavigation(e),markScrollRestoreConsumed:e=>{pm=e},restorePopstateScrollPosition:Wm},e.state),Q.finalizeNavigation(n,null);return}Q.finalizeNavigation(n,null),b(e)})}typeof document<`u`&&(Xt({appDir:!0,router:bd}),window.addEventListener(`pagehide`,()=>{Km=!0}),window.addEventListener(`pageshow`,e=>{Km=!1,e.persisted&&um.reset()}),eh()),window.__VINEXT_LINK_PREFETCH_ROUTES__=[{canPrefetchLoadingShell:!1,patternParts:[],isDynamic:!1},{canPrefetchLoadingShell:!1,documentOnly:!0,patternParts:[`api`,`interest`],isDynamic:!1}],window.__VINEXT_PAGES_LINK_PREFETCH_ROUTES__=[],window.__VINEXT_CLIENT_REWRITES__={beforeFiles:[],afterFiles:[],fallback:[]},k({routeManifest:{graphVersion:`graph:cc418a0c5c62a140cfbce99b4c4e1974c2808aba61fd57ac1af50a2b925a32a3`,segmentGraph:{routes:new Map([[`route:/`,{id:`route:/`,pattern:`/`,patternParts:[],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:`page:/`,routeHandlerId:null,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}],[`route:/api/interest`,{id:`route:/api/interest`,pattern:`/api/interest`,patternParts:[`api`,`interest`],isDynamic:!1,paramNames:[],rootParamNames:[],rootBoundaryId:`root-boundary:/`,pageId:null,routeHandlerId:`route-handler:/api/interest`,layoutIds:[`layout:/`],templateIds:[],slotIds:[]}]]),pages:new Map([[`page:/`,{id:`page:/`,routeId:`route:/`,pattern:`/`}]]),routeHandlers:new Map([[`route-handler:/api/interest`,{id:`route-handler:/api/interest`,routeId:`route:/api/interest`,pattern:`/api/interest`}]]),layouts:new Map([[`layout:/`,{id:`layout:/`,treePath:`/`,patternParts:[],paramNames:[],rootBoundaryId:`root-boundary:/`}]]),templates:new Map([]),slots:new Map([]),defaults:new Map([]),slotBindings:new Map([]),interceptions:new Map([]),interceptionsBySlotId:new Map([]),boundaries:new Map([]),rootBoundaries:new Map([[`root-boundary:/`,{id:`root-boundary:/`,layoutId:`layout:/`,treePath:`/`}]])}}});export{dn as a,H as i,qc as n,Gi as r,Gc as t};